From e7e9ba0ec5b4ad17f6308da31fb9d35359c75142 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Wed, 29 Apr 2026 15:05:57 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E4=BA=91=E7=81=B5AI):[#5193]=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=B8=BB=E9=A1=B5=EF=BC=8C=E9=9C=80=E8=A6=81=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E8=A7=84=E6=A0=BC=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 28ee55f9fda1290af64f35bbcb1fa89c19ceff5f) --- aiChat/mixins/chatMixinsV2.js | 5 ++++- aiChat/views/index.vue | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/aiChat/mixins/chatMixinsV2.js b/aiChat/mixins/chatMixinsV2.js index 274f7e5..1dc03af 100644 --- a/aiChat/mixins/chatMixinsV2.js +++ b/aiChat/mixins/chatMixinsV2.js @@ -507,7 +507,7 @@ export const chatMixinsV2 = { uniqueId: _this.attr.productSelect !== undefined ? _this.attr.productSelect.unique : '' }).then(function (res) { try { - _this.$set(_this.attr, 'cartAttr', false) + _this.closeAttrWindow() const { cartId } = res.data if (type === 1) { uni.navigateTo({ @@ -534,6 +534,9 @@ export const chatMixinsV2 = { _this.buyLoading = false }) }, + closeAttrWindow() { + this.$set(this.attr, 'cartAttr', false) + }, hotelItemClickHandle(item) { this.audioStopHandle() this.$yrouter.push({ diff --git a/aiChat/views/index.vue b/aiChat/views/index.vue index 897642e..4aef3b3 100644 --- a/aiChat/views/index.vue +++ b/aiChat/views/index.vue @@ -645,6 +645,7 @@ export default { }, // 创建新会话 createNewHandle() { + this.closeAttrWindow() if (this.audioContext) { this.audioContext.stop() } @@ -681,9 +682,6 @@ export default { }) } } else { - if (this.$refs.attrWindow && this.$refs.attrWindow.attr) { - this.$refs.attrWindow.attr.cartAttr = false - } this.createNewHandle() } }