ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 13.关于如何在非tabbar配置页面显示tabbar导航 页面底部tabbar导航在文件`\addons\cms\uniapp\components\fa-tabbar\fa-tabbar.vue` 是根据`cms`后台配置导航对应,默认当前打开的页面的`path`如果匹配到`tabbar`,则显示并标亮。 以下修改可增加显示页面。 1、大概77行,`<script>`标签下边,添加 `const myTabbar = ['/information/article/detail','/information/product/detail'];` 2、大概156行,showTabbar方法修改为如下: ~~~javascript showTabbar() { let status = false; if (this.tabbar.list) { status = this.tabbar.list.some(item => { if (item.path == this.vuex_route || item.path == '/' + this.vuex_route) { this.$u.vuex('vuex_table_title', item.text); return true; } }) || myTabbar.includes(this.vuex_route.split('?').shift()); } return status; } ~~~ 即可在其他页面显示`tabbar`导航。