moreShopAdmin/build/admin/assets/error.9bbd6af5.js

2 lines
1.8 KiB
JavaScript

import{w as c}from"./element-plus.a63a26dd.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.cceac675.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.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};