Commit 2df83795 by 程默

fix mayi

parent a437b1da
......@@ -10,9 +10,9 @@ export function $themeToLink(data, option) {
// 点击底部栏
if (option) {
let parseLink = getUrlofLink(data);
let isTabbarIndex =checkTabbarPage(parseLink );
let isTabbarIndex = checkTabbarPage(parseLink);
// 替换首页位置
isTabbarIndex=isTabbarIndex==0?checkTabbarPage('/'):isTabbarIndex
isTabbarIndex = isTabbarIndex == 0 ? checkTabbarPage('/') : isTabbarIndex
wx.switchTab({
url: parseLink == '/' ? '/pages/home/main' : `/pages/tabBar${isTabbarIndex}/main`,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment