diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index f22db74..39c362b 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -93,7 +93,9 @@ function handleSubmit() { } } */ - +watch(prompt,()=>{ + console.log(prompt.value,'prompt.value') +}) const API_URL = `${import.meta.env.VITE_APP_API_BASE_URL}/chat/completion`; const createParams = () => { const messages = dataSources.value.map((x) => { @@ -425,6 +427,7 @@ watch(dataSources,()=>{ loading.value=false scrollToBottom('auto') }) +const inputKey=ref(1) const customRequest = async (file) => { console.log(file,'file') const res = await uploadImg({ @@ -469,7 +472,7 @@ const customRequest = async (file) => { -
+
{