diff --git a/src/views/deepNine.vue b/src/views/deepNine.vue index d3b90f7..5edefd4 100644 --- a/src/views/deepNine.vue +++ b/src/views/deepNine.vue @@ -724,7 +724,7 @@ const createTypingEffect = (message, content, speed) => { if (message.end) { homepageChatStore.getUserCount(); homepageChatStore.isLoading = false; - console.log("打印完毕,接触输入框禁用状态"); + console.log("打印完毕,解除输入框禁用状态"); homepageChatStore.deepNineInput = false; emit("enableInput"); } diff --git a/src/views/homePage.vue b/src/views/homePage.vue index f408a99..9f2f402 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -344,6 +344,7 @@ watch( watch( () => chatStore.deepNineInput, async (newVal) => { + console.log("deepNineInput", chatStore.deepNineInput); if (activeTab.value == "deepNine") { isInputDisabled.value = chatStore.deepNineInput; } @@ -392,7 +393,7 @@ const sendMessage = async () => { if (activeTab.value === "deepNine") { // 禁用输入框 isInputDisabled.value = true; - + chatStore.deepNineInput = true; // 获取深度九大模型的 store const deepNineStore = useDeepNineStore(); @@ -2039,7 +2040,8 @@ onUnmounted(() => {