fix(custom): 自定义跳转

This commit is contained in:
maqian
2025-11-10 21:21:56 +08:00
parent 7b5bd1e02f
commit 2484a6460b

View File

@@ -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 {