import{w as l}from"./element-plus.73c9e9a6.js";import{a as u}from"./vue-router.58fac957.js";import{d,r as _,Y as v,o as n,c as f,a as r,H as B,S as s,K as x,L as y,R as g,u as E,Q as h}from"./@vue.663bc523.js";import{d as k}from"./index.bd5cd373.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.403d4198.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";const w={class:"error"},S={class:"error-code"},C={class:"text-lg text-tx-secondary mt-7 mb-7"},D=d({__name:"error",props:{code:String,title:String,showBtn:{type:Boolean,default:!0}},setup(t){const m=t;let o=null;const e=_(5),i=u();return m.showBtn&&(o=setInterval(()=>{e.value===0?(clearInterval(o),i.go(-1)):e.value--},1e3)),v(()=>{o&&clearInterval(o)}),(p,a)=>{const c=l;return n(),f("div",w,[r("div",null,[B(p.$slots,"content",{},()=>[r("div",S,s(t.code),1)],!0),r("div",C,s(t.title),1),t.showBtn?(n(),x(c,{key:0,type:"primary",onClick:a[0]||(a[0]=I=>E(i).go(-1))},{default:y(()=>[g(s(e.value)+" \u79D2\u540E\u8FD4\u56DE\u4E0A\u4E00\u9875 ",1)]),_:1})):h("",!0)])])}}});const st=k(D,[["__scopeId","data-v-a47523cc"]]);export{st as default};
