提交 fc371d1d 编写于 作者: 雪洛's avatar 雪洛

fix: 修复tabBar判断条件可能返回不正确的Bug

上级 88a8a87c
......@@ -71,7 +71,7 @@ export function isTabBarPage (path = '') {
}
return page.$page.meta.isTabBar
}
const route = __uniRoutes.find(route => route.path.slice(1) === path)
const route = __uniRoutes.find(route => route.path.replace(/^\//, '') === path.replace(/^\//, ''))
return route && route.meta.isTabBar
} catch (e) {
if (process.env.NODE_ENV !== 'production') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册