refactor(utils&tabbar): 重构tabbar高亮逻辑与分包路径适配

1. 修复store中tabBarList初始值为null替代空字符串
2. 重构adaptSubpackageUrl,优化正则匹配与移除冗余映射
3. 新增路径归一化、分包名提取工具函数
4. 重写checkTabBarActive,新增精确匹配、packageEntryTab优先级匹配逻辑
5. 重构diy-bottom-nav组件的路由更新与高亮校验逻辑,统一路径处理流程
This commit is contained in:
2026-06-16 14:56:17 +08:00
parent c0e64437f0
commit 92700f9a21
3 changed files with 166 additions and 158 deletions

View File

@@ -14,7 +14,7 @@ const store = new Vuex.Store({
token: null,
siteInfo: null,
memberInfo: null,
tabBarList: '',
tabBarList: null,
siteState: 1,
themeStyle: '',
themeColor: '',