|
@@ -11,7 +11,14 @@ const isCurrentPageTabbar = ref(true)
|
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
console.log('App.ku.vue onShow', currRoute())
|
|
console.log('App.ku.vue onShow', currRoute())
|
|
|
const { path } = currRoute()
|
|
const { path } = currRoute()
|
|
|
- isCurrentPageTabbar.value = isPageTabbar(path)
|
|
|
|
|
|
|
+ // “蜡笔小开心”提到本地是 '/pages/index/index',线上是 '/' 导致线上 tabbar 不见了
|
|
|
|
|
+ // 所以这里需要判断一下,如果是 '/' 就当做首页,也要显示 tabbar
|
|
|
|
|
+ if (path === '/') {
|
|
|
|
|
+ isCurrentPageTabbar.value = true
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ isCurrentPageTabbar.value = isPageTabbar(path)
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const helloKuRoot = ref('Hello AppKuVue')
|
|
const helloKuRoot = ref('Hello AppKuVue')
|