fix: bug
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -249,6 +249,10 @@
|
||||
// #endif
|
||||
};
|
||||
const beforeToTalking = () => {
|
||||
if (isPreview.value) {
|
||||
toTalking()
|
||||
return
|
||||
}
|
||||
checkTraPartnerInfoById({
|
||||
traId: traId.value
|
||||
}).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user