fix: bug

This commit is contained in:
杨航
2025-12-16 13:34:52 +08:00
parent a641c6c69c
commit 89c7dd72f8
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -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 => {
+6
View File
@@ -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 => {
+4
View File
@@ -249,6 +249,10 @@
// #endif
};
const beforeToTalking = () => {
if (isPreview.value) {
toTalking()
return
}
checkTraPartnerInfoById({
traId: traId.value
}).then(res => {