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

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

上级 ba742014
......@@ -219,18 +219,17 @@ export default {
let url = '/' + pagePath
if (url === __uniRoutes[0].alias) {
url = '/'
}
}
UniServiceJSBridge.emit('onTabItemTap', {
index,
text,
pagePath
})
if (this.$route.path !== url) {
this.__path__ = this.$route.path
uni.switchTab({
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.
先完成此消息的编辑!
想要评论请 注册