moreShopAdmin/build/admin/assets/error.9705806f.js

2 lines
1.8 KiB
JavaScript
Raw Normal View History

2024-09-19 15:29:18 +08:00
import{w as c}from"./element-plus.4a7d92a3.js";import{a as u}from"./vue-router.101084e3.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.18505fe0.js";import{d as k}from"./index.b73336f2.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.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 l=c;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(l,{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 at=k(D,[["__scopeId","data-v-9a820143"]]);export{at as default};