keepAliveNames.4207d036.js 582 B

123
  1. import{am as i}from"./vue.e266cb73.js";const c=i("keepALiveNames",{state:()=>({keepAliveNames:[],cachedViews:[]}),actions:{async setCacheKeepAlive(e){this.keepAliveNames=e},async addCachedView(e){var s;e.meta.isKeepAlive&&((s=this.cachedViews)==null||s.push(e.name))},async delCachedView(e){const s=this.cachedViews.indexOf(e.name);s>-1&&this.cachedViews.splice(s,1)},async delOthersCachedViews(e){e.meta.isKeepAlive?this.cachedViews=[e.name]:this.cachedViews=[]},async delAllCachedViews(){this.cachedViews=[]}}});export{c as u};
  2. //# sourceMappingURL=keepAliveNames.4207d036.js.map