We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eccc8aa commit fffb1ceCopy full SHA for fffb1ce
packages/taro-router/src/router/page.ts
@@ -90,8 +90,8 @@ export default class PageHandler {
90
return false
91
}
92
)?.[0] || routePath
93
-
94
- return !!pagePath && this.tabBarList.some(t => stripTrailing(t.pagePath) === pagePath)
+ // Fix: 这里仍然需要使用 addLeadingSlash 来处理 pagePath,因为 pagePath 可能在未被增加统一前缀 / 的时候就进行比对
+ return !!pagePath && this.tabBarList.some(t => addLeadingSlash(stripTrailing(t.pagePath)) === pagePath)
95
96
97
isDefaultNavigationStyle () {
0 commit comments