You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vite-vue3-lowcode/assets/preview.5e2ad3c5.js

2 lines
1.5 KiB

export function __vite_legacy_guard(){import("data:text/javascript,")}import{d as e,r as a,aR as t,w as r,x as o,b as s,j as l,k as p,aS as n,aU as i,l as u,as as c,at as d,au as _,S as f,Y as v}from"./preload-helper.fde915ab.js";import{_ as g}from"./plugin-vue_export-helper.21dcd24c.js";var m=g(e({name:"App",setup(){const e=a(),o=n(),s=JSON.parse(localStorage.getItem(t.PAGE_DATA_KEY)),l=Object.keys(s.pages).filter((e=>!s.pages[e].config.keepAlive));return r((()=>o.path),(a=>{var t,r;if(l.includes(a)){(null==(r=null==(t=e.value)?void 0:t.$)?void 0:r.__v_cache).delete(a)}})),{keepAliveRef:e}}}),[["render",function(e,a,t,r,n,c){const d=o("router-view");return s(),l(d,null,{default:p((({Component:e,route:a})=>[(s(),l(i,{ref:"keepAliveRef"},[(s(),l(u(e),{key:a.path}))],1536))])),_:1})}]]);const h=[{path:"/:pathMatch(.*)*",component:()=>_((()=>import("./preview.826c61be.js")),["assets/preview.826c61be.js","assets/index.7b4f7ca9.js","assets/index.59ee6ec9.css","assets/preload-helper.fde915ab.js","assets/preload-helper.5407db1b.css","assets/useAnimate.644289ba.js","assets/plugin-vue_export-helper.21dcd24c.js"])}],A=c({history:d(),routes:h}),b=JSON.parse(localStorage.getItem(t.PAGE_DATA_KEY));A.beforeEach((e=>{var a,t,r;return document.title=null!=(r=null==(t=null==(a=null==b?void 0:b.pages)?void 0:a[e.path])?void 0:t.title)?r:document.title,!0}));const E=f(m);v(E),E.config.globalProperties.$$refs={},window.$$refs=E.config.globalProperties.$$refs,E.use(A).mount("#app");export{A as r};