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

fix(h5): onTabItemTap

上级 4520767f
......@@ -220,16 +220,20 @@ export default {
if (url === __uniRoutes[0].alias) {
url = '/'
}
UniServiceJSBridge.emit('onTabItemTap', {
const detail = {
index,
text,
pagePath
})
if (this.$route.path !== url) {
this.__path__ = this.$route.path
uni.switchTab({
url
})
}
if (this.$route.path !== url) {
this.__path__ = this.$route.path
uni.switchTab({
from: 'tabBar',
url,
detail
})
} else {
UniServiceJSBridge.emit('onTabItemTap', detail)
}
}
}
......
......@@ -1457,6 +1457,10 @@ balanced-match@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
base64-arraybuffer@^0.2.0:
version "0.2.0"
resolved "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz#4b944fac0191aa5907afe2d8c999ccc57ce80f45"
base64-js@^1.0.2:
version "1.3.0"
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册