From e446b9e847c3d9cc3e8724c633ca1988561c46e8 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 8 Apr 2025 10:18:58 +0800 Subject: [PATCH] =?UTF-8?q?Fix(AI):[#3609]=E7=82=B9=E5=87=BB=E7=83=AD?= =?UTF-8?q?=E9=97=A8=E8=AF=8D=E6=9D=A1=E6=97=B6=EF=BC=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=8D=A11=E7=A7=92=E6=89=8D=E8=83=BD=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E9=97=AE=E7=AD=94=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=90=8E=E9=A9=AC=E4=B8=8A=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E9=97=AE=E7=AD=94=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/mixins/chatMixins.js | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/aiChat/mixins/chatMixins.js b/aiChat/mixins/chatMixins.js index 4183d2c..ee04849 100644 --- a/aiChat/mixins/chatMixins.js +++ b/aiChat/mixins/chatMixins.js @@ -156,28 +156,28 @@ export const chatMixins = { handleLoginFailure() return } - _this.initWebSocket(() => { - const prompt = params.prompt - if (params.init !== 1) { - _this.chatMessageList.push({ - prompt, - type: -1 - }) - } - _this.$nextTick(() => { - _this.scrollToBottomHandle() - }) + const prompt = params.prompt + if (params.init !== 1) { _this.chatMessageList.push({ - content: '', - nodes: '', - isError: false, - showCursor: false, - conversationId: '', prompt, - listQuestion: [], - type: -2 + type: -1 }) - _this.loading = true + } + _this.$nextTick(() => { + _this.scrollToBottomHandle() + }) + _this.chatMessageList.push({ + content: '', + nodes: '', + isError: false, + showCursor: false, + conversationId: '', + prompt, + listQuestion: [], + type: -2 + }) + _this.loading = true + _this.initWebSocket(() => { _this.showCursor = false getSseConfigV1({ 'chatNumber': _this.chatNumber,