wujingjing
2024-09-30 5e78e5bc69a8b7abf76663acaab6b7da63f35aa2
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);