Skip to content

Commit

Permalink
fix(h5): 修复配置了 basename 时 Tabbar 不显示的问题,fix #9392
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Oct 27, 2021
1 parent c5959be commit c8fb48e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/taro-router/src/tabbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export function initTabbar (config: AppConfig) {
tabbar.conf.custom = false
tabbar.conf.customRoutes = {}
}
if (typeof routerConfig.basename !== 'undefined') {
tabbar.conf.basename = routerConfig.basename
}
const container = document.getElementById('container')
// eslint-disable-next-line no-unused-expressions
container?.appendChild(tabbar)
Expand Down

0 comments on commit c8fb48e

Please sign in to comment.