From d363547bf794ccd0052631d7e06768e7ac7d55cf Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 15 Sep 2026 17:54:42 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E4=BA=91=E7=81=B5AI):[#5917]=E6=88=91?= =?UTF-8?q?=E8=A6=81=E9=80=81=E7=A4=BC=E9=80=89=E6=8B=A9=E9=80=81=E7=A4=BC?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=90=8E=E7=9B=B4=E6=8E=A5=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E3=80=90=E8=B7=B3=E8=BF=87=E3=80=91=EF=BC=8C=E4=BC=9A=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E7=94=9F=E6=88=90=E6=90=BA=E5=B8=A6=E8=AF=A5=E9=80=81?= =?UTF-8?q?=E7=A4=BC=E6=9D=A1=E4=BB=B6=E7=9A=84=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/mixins/chatMixinsV2.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/aiChat/mixins/chatMixinsV2.js b/aiChat/mixins/chatMixinsV2.js index 10ac0c8..b5fc49d 100644 --- a/aiChat/mixins/chatMixinsV2.js +++ b/aiChat/mixins/chatMixinsV2.js @@ -885,6 +885,18 @@ export const chatMixinsV2 = { this.currentGiftStepIndex-- } }, + clearCurrentGiftStepData() { + const currentStep = this.giftBuyOptions[this.currentGiftStepIndex] + if (!currentStep) return + + if (currentStep.type === 'option_card') { + const nextSelections = { ...this.giftSelections } + delete nextSelections[currentStep.id] + this.giftSelections = nextSelections + } else if (currentStep.type === 'price_input') { + this.giftBudget = '' + } + }, nextGiftStep() { const currentStep = this.giftBuyOptions[this.currentGiftStepIndex] let hasSelection = false @@ -912,6 +924,7 @@ export const chatMixinsV2 = { } }, skipGiftStep() { + this.clearCurrentGiftStepData() if (this.currentGiftStepIndex < this.giftBuyOptions.length - 1) { this.currentGiftStepIndex++ } else {