wujingjing
2024-10-28 5d7b63225ca327aee2650fd6d36c3a7fc8f11cf1
src/stores/keepAliveNames.ts
@@ -18,7 +18,9 @@
         this.keepAliveNames = data;
      },
      async addCachedView(view: any) {
         if (view.meta.isKeepAlive) this.cachedViews?.push(view.name);
         if (view.meta.isKeepAlive && !this.cachedViews?.includes(view.name)) {
            this.cachedViews?.push(view.name);
         }
      },
      async delCachedView(view: any) {
         const index = this.cachedViews.indexOf(view.name);