提交 74b10646 编写于 作者: fxy060608's avatar fxy060608

fix(h5): watch selected change (customTabBar.vue)

上级 c9a04704
......@@ -90,6 +90,9 @@ export default {
}
},
watch: {
selected (val) {
this.selectedIndex = val
},
'$route' (to, from) {
if (to.meta.isTabBar) {
const index = tabBar.list.findIndex(item => to.meta.pagePath === item.pagePath)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册