2 lines
1.9 KiB
JavaScript
2 lines
1.9 KiB
JavaScript
import{w as c}from"./element-plus.b3353ca6.js";import{a as u}from"./vue-router.87ebc608.js";import{d,r as _,H as v,o as m,c as f,a as r,I as B,U as i,L as x,M as y,T as g,u as E,S as h}from"./@vue.ab566ce7.js";import{_ as k}from"./index.892155dd.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const w={class:"error"},I={class:"error-code"},S={class:"text-lg text-tx-secondary mt-7 mb-7"},C=d({__name:"error",props:{code:String,title:String,showBtn:{type:Boolean,default:!0}},setup(t){const n=t;let o=null;const e=_(5),s=u();return n.showBtn&&(o=setInterval(()=>{e.value===0?(clearInterval(o),s.go(-1)):e.value--},1e3)),v(()=>{o&&clearInterval(o)}),(p,a)=>{const l=c;return m(),f("div",w,[r("div",null,[B(p.$slots,"content",{},()=>[r("div",I,i(t.code),1)],!0),r("div",S,i(t.title),1),t.showBtn?(m(),x(l,{key:0,type:"primary",onClick:a[0]||(a[0]=D=>E(s).go(-1))},{default:y(()=>[g(i(e.value)+" \u79D2\u540E\u8FD4\u56DE\u4E0A\u4E00\u9875 ",1)]),_:1})):h("",!0)])])}}});const nt=k(C,[["__scopeId","data-v-9a820143"]]);export{nt as default};
|