Error-9c0246c9.js 1.2 KB

1
  1. import{d as v,p as g,o as x,c as y,g as t,t as c,i as E,w as T,n as b,J as k,j as w,_ as H,__tla as h}from"./index-390579cd.js";let m,C=Promise.all([(()=>{try{return h}catch{}})()]).then(async()=>{let a,o,n,l,i;a={class:"flex justify-center"},o={class:"text-center"},n=["src"],l={class:"text-14px text-[var(--el-color-info)]"},i={class:"mt-20px"},m=H(v({name:"Error",__name:"Error",props:{type:g.string.validate(r=>["404","500","403"].includes(r)).def("404")},emits:["errorClick"],setup(r,{emit:u}){const{t:e}=b(),s={404:{url:"/assets/404-1759fece.svg",message:e("error.pageError"),buttonText:e("error.returnToHome")},500:{url:"/assets/500-8fda557c.svg",message:e("error.networkError"),buttonText:e("error.returnToHome")},403:{url:"/assets/403-af24f6bf.svg",message:e("error.noPermission"),buttonText:e("error.returnToHome")}},p=r,f=u,_=()=>{f("errorClick",p.type)};return(P,j)=>{const d=k;return x(),y("div",a,[t("div",o,[t("img",{src:s[r.type].url,alt:"",width:"350"},null,8,n),t("div",l,c(s[r.type].message),1),t("div",i,[E(d,{type:"primary",onClick:_},{default:T(()=>[w(c(s[r.type].buttonText),1)]),_:1})])])])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/components/Error/src/Error.vue"]])});export{m as _,C as __tla};