gerson
2024-11-01 3cc575268b3042b35e785ffeebf51a6ea3b5e73d
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);