import{d as c,R as u,r as d,m as p,b as m,e as _,f as k,s as o,g as f,A as y,w}from"./vue.BxlDVA1H.js";import{J as g,a0 as L}from"./index.lP_uh0LI.js";import{_ as v}from"./_plugin-vue_export-helper.DlAUqK2U.js";const b={class:"layout-padding layout-link-container"},C={class:"layout-padding-auto layout-padding-view"},h={class:"layout-link-warp"},q={class:"layout-link-msg"},x=c({name:"layoutLinkView"}),U=c({...x,setup($){const e=u(),t=d({title:"",isLink:"",query:null}),r=()=>{const{origin:i,pathname:n}=window.location;if(t.isLink.includes("{{token}}")&&(t.isLink=t.isLink.replace("{{token}}",g.cookie.get("token"))),L(t.isLink))window.open(t.isLink);else{let s=function(a){return Object.keys(a).map(l=>encodeURIComponent(l)+"="+encodeURIComponent(a[l])).join("&")};window.open(`${i}${n}#${t.isLink}?${s(t.query)}`)}};return p(()=>e.path,()=>{t.title=e.meta.title,t.isLink=e.meta.isLink,t.query=e.query},{immediate:!0}),(i,n)=>{const s=m("el-button");return k(),_("div",b,[o("div",C,[o("div",h,[n[1]||(n[1]=o("i",{class:"layout-link-icon iconfont icon-xingqiu"},null,-1)),o("div",q,'页面 "'+y(i.$t(t.title))+'" 已在新窗口中打开',1),f(s,{class:"mt30",round:"",size:"small",onClick:r},{default:w(()=>n[0]||(n[0]=[o("i",{class:"iconfont icon-lianjie"},null,-1),o("span",null,"立即前往体验",-1)])),_:1,__:[0]})])])])}}}),I=v(U,[["__scopeId","data-v-b42cba5f"]]);export{I as default};
