You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
844 B

import{d as l,bY as d,bL as m,cb as f,dN as _,f as g,e as E,e7 as L,aT as C,aU as e,o as h,a as b,w as a,b as c}from"./index-f4658ae7.js";import{B}from"./index-fdcf88d8.js";const T=l({name:"ErrorAction",components:{Icon:d,Tooltip:m,Badge:B},setup(){const{t:o}=E(),{push:n}=f(),t=_(),r=g(()=>t.getErrorLogListCount);function s(){n(L.ERROR_LOG_PAGE).then(()=>{t.setErrorLogListCount(0)})}return{t:o,getCount:r,handleToErrorList:s}}});function k(o,n,t,r,s,I){const u=e("Icon"),i=e("Badge"),p=e("Tooltip");return h(),b(p,{title:o.t("layout.header.tooltipErrorLog"),placement:"bottom",mouseEnterDelay:.5,onClick:o.handleToErrorList},{default:a(()=>[c(i,{count:o.getCount,offset:[0,10],overflowCount:99},{default:a(()=>[c(u,{icon:"ion:bug-outline"})]),_:1},8,["count"])]),_:1},8,["title","onClick"])}const w=C(T,[["render",k]]);export{w as default};