diff --git a/src/components/sp-tabbar/index.js b/src/components/sp-tabbar/index.js index 513b490b2..9144ff7d3 100755 --- a/src/components/sp-tabbar/index.js +++ b/src/components/sp-tabbar/index.js @@ -86,7 +86,7 @@ function SpTabbar() { if (TABBAR_PATH[tabItem.name] !== navipage) { let url = tabItem.name == 'customPage' - ? `${TABBAR_PATH[tabItem.name]}?isTabBar=true&id=${tabItem.customPageId}` + ? `${TABBAR_PATH[tabItem.name]}?isTabBar=true&id=${tabItem.customPageId || tabItem.customPage.id}` : TABBAR_PATH[tabItem.name] Taro.redirectTo({ url }) } else {