瀏覽代碼

fix: 关闭非当前的标签没有同步清理cacheTabList数据 (#2306)

前端爱码士 2 年之前
父節點
當前提交
fd9450304d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/store/modules/multipleTab.ts

+ 1 - 0
src/store/modules/multipleTab.ts

@@ -187,6 +187,7 @@ export const useMultipleTabStore = defineStore({
       if (path !== tab.path) {
         // Closed is not the activation tab
         close(tab);
+        this.updateCacheTab();
         return;
       }