From 89c7dd72f862254e2cb952716dcf6ef333e4a13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 16 Dec 2025 13:34:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/chooseRole.vue | 5 +++++ src/pages/sparring/detail.vue | 6 ++++++ src/pages/sparring/tip.vue | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/src/pages/sparring/chooseRole.vue b/src/pages/sparring/chooseRole.vue index 7a2432da..974c772c 100644 --- a/src/pages/sparring/chooseRole.vue +++ b/src/pages/sparring/chooseRole.vue @@ -62,6 +62,11 @@ } const isPreview = ref(false) const toTip = () => { + if (isPreview.value) { + common.navigateTo('/pages/sparring/tip?traId=' + traId.value + '&chaId=' + activeRole.value.chaId + + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ? '1' : '')) + return + } checkTraPartnerInfoById({ traId: traId.value }).then(res => { diff --git a/src/pages/sparring/detail.vue b/src/pages/sparring/detail.vue index 84061a2a..11d44505 100644 --- a/src/pages/sparring/detail.vue +++ b/src/pages/sparring/detail.vue @@ -125,6 +125,12 @@ }) } const toChooseRole = type => { + if (isPreview.value) { + common.navigateTo('/pages/sparring/chooseRole?traId=' + traId.value + '&type=' + type + '&isPreview=' + ( + isPreview + .value ? '1' : '')) + return + } checkTraPartnerInfoById({ traId: traId.value }).then(res => { diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index 15be2ae5..9a2ccf93 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -249,6 +249,10 @@ // #endif }; const beforeToTalking = () => { + if (isPreview.value) { + toTalking() + return + } checkTraPartnerInfoById({ traId: traId.value }).then(res => {