fix: 修复 Hash 路由跳转丢失部署基路径

- 修复懒加载分包失败后跳转到站点根路径的问题

- 统一管理端和用户中心新窗口路由解析

- 增加部署基路径与 Hash 路由回归测试
This commit is contained in:
2026-08-31 18:47:54 +08:00
parent 1bd9810518
commit 9ef20119a9
11 changed files with 83 additions and 23 deletions

View File

@@ -307,9 +307,11 @@ export const useTabbarStore = defineStore('core-tabbar', {
/**
* @zh_CN 新窗口打开标签页
* @param tab
* @param router
*/
async openTabInNewWindow(tab: TabDefinition) {
openRouteInNewWindow(tab.fullPath || tab.path);
async openTabInNewWindow(tab: TabDefinition, router: Router) {
const href = router.resolve(tab.fullPath || tab.path).href;
openRouteInNewWindow(href);
},
/**