import{Q as m,a as p,U as l,F as h}from"./index.ba87be65.js";const r=m(),c=p({tagsViewList:[]}),d=e=>{l.get("tagsViewList")&&(c.tagsViewList=l.get("tagsViewList")),console.log(r),console.log(e),g(e.fullPath)},g=async e=>{var a;const i=decodeURI(e);let t={};if(c.tagsViewList.forEach(s=>{s.transUrl=o(s),s.transUrl?s.transUrl===o(s)&&(t=s):s.path===i&&(t=s)}),!t)return!1;await r.delCachedView(t),h.emit("onTagsViewRefreshRouterView",e),(a=t.meta)!=null&&a.isKeepAlive&&r.addCachedView(t)},o=e=>{var a,s;let i=e.query&&Object.keys(e.query).length>0?e.query:e.params;if(!i)return"";let t="";for(let[f,n]of Object.entries(i))(a=e.meta)!=null&&a.isDynamic?t+=`/${n}`:t+=`&${f}=${n}`;return(s=e.meta)!=null&&s.isDynamic?e.isFnClick?decodeURI(e.path):`${e.path.split(":")[0]}${t.replace(/^\//,"")}`:`${e.path}${t.replace(/^&/,"?")}`};export{d as r};