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

fix(h5): onTabItemTap调整为每次点击均触发

上级 ba742014
...@@ -219,18 +219,17 @@ export default { ...@@ -219,18 +219,17 @@ export default {
let url = '/' + pagePath let url = '/' + pagePath
if (url === __uniRoutes[0].alias) { if (url === __uniRoutes[0].alias) {
url = '/' url = '/'
} }
UniServiceJSBridge.emit('onTabItemTap', {
index,
text,
pagePath
})
if (this.$route.path !== url) { if (this.$route.path !== url) {
this.__path__ = this.$route.path this.__path__ = this.$route.path
uni.switchTab({ uni.switchTab({
url url
}) })
} else {
UniServiceJSBridge.emit('onTabItemTap', {
index,
text,
pagePath
})
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册