2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
|
import{w as c}from"./element-plus.ff90c99c.js";import{a as u}from"./vue-router.6d4cf914.js";import{d,r as _,_ as v,o as a,c as f,a as e,J as B,V as i,P as x,Q as y,U as g,u as E,T as h}from"./@vue.f8dfc830.js";import{d as k}from"./index.872975fb.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const w={class:"error"},C={class:"error-code"},D={class:"text-lg text-tx-secondary mt-7 mb-7"},I=d({__name:"error",props:{code:String,title:String,showBtn:{type:Boolean,default:!0}},setup(t){const n=t;let o=null;const r=_(5),m=u();return n.showBtn&&(o=setInterval(()=>{r.value===0?(clearInterval(o),m.go(-1)):r.value--},1e3)),v(()=>{o&&clearInterval(o)}),(p,s)=>{const l=c;return a(),f("div",w,[e("div",null,[B(p.$slots,"content",{},()=>[e("div",C,i(t.code),1)],!0),e("div",D,i(t.title),1),t.showBtn?(a(),x(l,{key:0,type:"primary",onClick:s[0]||(s[0]=S=>E(m).go(-1))},{default:y(()=>[g(i(r.value)+" \u79D2\u540E\u8FD4\u56DE\u4E0A\u4E00\u9875 ",1)]),_:1})):h("",!0)])])}}});const ut=k(I,[["__scopeId","data-v-9a820143"]]);export{ut as default};
|