From 9f2fefbf28cc418f79e38ce7cdeb1027084d3ad5 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 23 Jun 2026 10:50:23 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E4=BA=91=E7=81=B5AI):[#5351]=E3=80=90?= =?UTF-8?q?=E9=80=81=E7=A4=BC=E9=A2=84=E8=AE=BE=E6=B5=81=E7=A8=8B=E3=80=91?= =?UTF-8?q?=E5=9C=A8=E6=9C=80=E5=90=8E=E4=B8=80=E6=AD=A5=EF=BC=8C=E5=BF=AB?= =?UTF-8?q?=E9=80=9F=E8=BF=9E=E7=BB=AD=E7=82=B9=E5=87=BB=E4=B8=A4=E6=AC=A1?= =?UTF-8?q?=E3=80=8C=E4=B8=8B=E4=B8=80=E6=AD=A5=E3=80=8D=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E8=A7=A6=E5=8F=91=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=EF=BC=8C=E5=AF=B9=E8=AF=9D=E9=A1=B5=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E4=B8=A4=E6=9D=A1=E5=8A=A0=E8=BD=BD=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=20AI=20=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/mixins/chatMixinsV2.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aiChat/mixins/chatMixinsV2.js b/aiChat/mixins/chatMixinsV2.js index 9205bf6..d88bf43 100644 --- a/aiChat/mixins/chatMixinsV2.js +++ b/aiChat/mixins/chatMixinsV2.js @@ -53,7 +53,8 @@ export const chatMixinsV2 = { exceptionConfig: { model_exception: '您提的问题未能理解,云灵思想跑偏啦,重新整理一下问题或者重新提问,让云灵再试试!', voice_exception: '' - } + }, + giftStepLoading: false, } }, computed: { @@ -217,6 +218,7 @@ export const chatMixinsV2 = { handleLoginFailure() return } + if (this.loading) return const prompt = params.prompt if (params.init !== 1) { _this.chatMessageList.push({ @@ -796,6 +798,7 @@ export const chatMixinsV2 = { } }, finishGiftSteps() { + if (this.giftStepLoading || this.loading) return const selectedSteps = [] this.giftBuyOptions.forEach(step => { if (step.type === 'option_card') { @@ -822,6 +825,7 @@ export const chatMixinsV2 = { }) console.log(selectedSteps) uni.showLoading() + this.giftStepLoading = true getGiftRecommendPrompt(selectedSteps).then(res => { const { success, data } = res if (success) { @@ -833,6 +837,7 @@ export const chatMixinsV2 = { } }).finally(() => { uni.hideLoading() + this.giftStepLoading = false }) } }