工业互联网平台脚手架前端代码
houzhongjian
2024-09-18 23db5e5c6bfcbd7030a4003cd4ea18fbb920024f
1
import{d as o,u as n,a as d,o as i,c as u}from"./index-BP6bNRoi.js";const y=o({name:"Redirect",__name:"Redirect",setup(m){const{currentRoute:p,replace:s}=n(),{params:e,query:a}=d(p),{path:r,_redirect_type:c="path"}=e;Reflect.deleteProperty(e,"_redirect_type"),Reflect.deleteProperty(e,"path");const t=Array.isArray(r)?r.join("/"):r;return s(c==="name"?{name:t,query:a,params:e}:{path:t.startsWith("/")?t:"/"+t,query:a}),(l,_)=>(i(),u("div"))}});export{y as default};