mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-10 14:09:25 +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) {
|
for (const path of closePathList) {
|
||||||
if (path !== route.fullPath) {
|
if (path !== route.fullPath) {
|
||||||
const closeItem = this.tabList.find((item) => item.path === path);
|
const closeItem = this.tabList.find((item) => item.fullPath === path);
|
||||||
if (!closeItem) {
|
if (!closeItem) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -320,6 +320,7 @@ export const useMultipleTabStore = defineStore({
|
|||||||
}
|
}
|
||||||
this.bulkCloseTabs(pathList);
|
this.bulkCloseTabs(pathList);
|
||||||
this.updateCacheTab();
|
this.updateCacheTab();
|
||||||
|
Persistent.setLocal(MULTIPLE_TABS_KEY, this.tabList, true)
|
||||||
handleGotoPage(router);
|
handleGotoPage(router);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user