mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-10 05:59:35 +00:00
fix:关闭其它页签需要使用fullPath来判断,更新缓存后需要同时更新localStorage,否则刷新页面页签会再次加载 (#2847)
* fixed:修复操作页签后 打开页面需要使用fullPath,否则可能会导致参数丢失引起数据加载异常。 * fix:关闭其它页签需要使用fullPath来判断,更新缓存后需要同时更新localStorage,否则刷新页面页签会再次加载 --------- Co-authored-by: lichi <lichi@ilinecn.com>
This commit is contained in:
@@ -308,7 +308,7 @@ export const useMultipleTabStore = defineStore({
|
||||
|
||||
for (const path of closePathList) {
|
||||
if (path !== route.fullPath) {
|
||||
const closeItem = this.tabList.find((item) => item.path === path);
|
||||
const closeItem = this.tabList.find((item) => item.fullPath === path);
|
||||
if (!closeItem) {
|
||||
continue;
|
||||
}
|
||||
@@ -320,6 +320,7 @@ export const useMultipleTabStore = defineStore({
|
||||
}
|
||||
this.bulkCloseTabs(pathList);
|
||||
this.updateCacheTab();
|
||||
Persistent.setLocal(MULTIPLE_TABS_KEY, this.tabList, true)
|
||||
handleGotoPage(router);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user