提交 953da7f1 编写于 作者: inkwalk's avatar inkwalk

fixed : h5 tabbar navigate error

上级 471c58c7
......@@ -40,13 +40,15 @@
},
computed: {
...mapState({
active: state => state.active
active: state => state.active,
hasLeftWin: state => !state.noMatchLeftWindow
})
},
watch: {
$route: {
immediate: true,
handler(newRoute) {
if ( this.hasLeftWin ) {
let comp = newRoute.path.split('/')[2]
this.current = this.selected[comp]
......@@ -59,6 +61,7 @@
}
}
}
}
},
mounted() {
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册