import{r as t,D as e,d as o,e as n,f as r,p as a,m as s,aB as i,a$ as c,a as l,b as u}from"./index-45b322f7.js";import{_ as p}from"./s-empty.081ad1d8.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const f=m({__name:"error",setup(m){const f=t(""),x=t("");function v(){return t=this,e=null,o=function*(){i({url:"/pages/index/index"}),c()},new Promise(((n,r)=>{var a=t=>{try{i(o.next(t))}catch(e){r(e)}},s=t=>{try{i(o.throw(t))}catch(e){r(e)}},i=t=>t.done?n(t.value):Promise.resolve(t.value).then(a,s);i((o=o.apply(t,e)).next())}));var t,e,o}return e((t=>{f.value=t.errCode,x.value=t.errMsg})),(t,e)=>{const i=l(u("s-empty"),p),c=a;return o(),n(c,{class:"error-page"},{default:r((()=>["NetworkError"===f.value?(o(),n(i,{key:0,icon:"/static/internet-empty.png",text:"网络连接失败",showAction:"",actionText:"重新连接",onClickAction:v,buttonColor:"#ff3000"})):"TemplateError"===f.value?(o(),n(i,{key:1,icon:"/static/internet-empty.png",text:"未找到模板",showAction:"",actionText:"重新加载",onClickAction:v,buttonColor:"#ff3000"})):""!==f.value?(o(),n(i,{key:2,icon:"/static/internet-empty.png",text:x.value,showAction:"",actionText:"重新加载",onClickAction:v,buttonColor:"#ff3000"},null,8,["text"])):s("",!0)])),_:1})}}},[["__scopeId","data-v-881ce849"]]);export{f as default};
