Fix(AI):[#3612]进入问答页面后,点击左上角返回按钮,会直接返回小程序首页,改为返回到AI首页

This commit is contained in:
lifizer
2025-04-08 10:48:11 +08:00
parent 794e405ed2
commit f6851bfa77
+17 -1
View File
@@ -4,14 +4,16 @@
class="fix-tabbar-page"
>
<hx-navbar
:back="true"
:back="false"
:fixed="true"
:statusBar="true"
:pageScroll.sync="scrollData"
left-icon="arrowleft"
color="#333"
transparent="auto"
barPlaceholder="hidden"
title="云灵AI智能助手"
@click-left="clickBackHandle"
/>
<view
id="fixTbabarBody"
@@ -270,6 +272,20 @@ export default {
this.loading = false
this.getConfigLoading = false
this.chatMessageList = []
},
clickBackHandle() {
console.log(1)
if (!this.chatNumber) {
if (getCurrentPages().length > 1) {
uni.navigateBack()
} else {
uni.reLaunch({
url: '/pages/home/index'
})
}
} else {
this.createNewHandle()
}
}
}
}