Fix(AI):[#3612]进入问答页面后,点击左上角返回按钮,会直接返回小程序首页,改为返回到AI首页
This commit is contained in:
+17
-1
@@ -4,14 +4,16 @@
|
|||||||
class="fix-tabbar-page"
|
class="fix-tabbar-page"
|
||||||
>
|
>
|
||||||
<hx-navbar
|
<hx-navbar
|
||||||
:back="true"
|
:back="false"
|
||||||
:fixed="true"
|
:fixed="true"
|
||||||
:statusBar="true"
|
:statusBar="true"
|
||||||
:pageScroll.sync="scrollData"
|
:pageScroll.sync="scrollData"
|
||||||
|
left-icon="arrowleft"
|
||||||
color="#333"
|
color="#333"
|
||||||
transparent="auto"
|
transparent="auto"
|
||||||
barPlaceholder="hidden"
|
barPlaceholder="hidden"
|
||||||
title="云灵AI智能助手"
|
title="云灵AI智能助手"
|
||||||
|
@click-left="clickBackHandle"
|
||||||
/>
|
/>
|
||||||
<view
|
<view
|
||||||
id="fixTbabarBody"
|
id="fixTbabarBody"
|
||||||
@@ -270,6 +272,20 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
this.getConfigLoading = false
|
this.getConfigLoading = false
|
||||||
this.chatMessageList = []
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user