Fix(云灵AI):[#5917]我要送礼选择送礼条件后直接点击【跳过】,会直接生成携带该送礼条件的对话
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user