提交 6629e34d 编写于 作者: fxy060608's avatar fxy060608

fix(h5): customTabBar.vue

上级 690c0241
......@@ -89,6 +89,16 @@ export default {
return true
}
},
watch: {
'$route' (to, from) {
if (to.meta.isTabBar) {
const index = tabBar.list.findIndex(item => to.meta.pagePath === item.pagePath)
if (index > -1) {
this.selectedIndex = index
}
}
}
},
methods: {
_getRealPath (filePath) {
if (filePath.indexOf('/') !== 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册