import{d as l,a1 as m,e as d,U as e,a2 as f,ad as _,af as a,k as c}from"./vue-vendor-CxLCUzY4.js";import{Z as g,T as E}from"./antd-vue-vendor-CDWW6V_M.js";import{by as C,bA as L,K as h,o as T,_ as k}from"./index-CYriLmQo.js";import"./vxe-table-vendor-B5h3MVdD.js";const B=l({name:"ErrorAction",components:{Icon:T,Tooltip:E,Badge:g},setup(){const{t:o}=h(),{push:n}=m(),t=C(),r=d(()=>t.getErrorLogListCount);function s(){n(L.ERROR_LOG_PAGE).then(()=>{t.setErrorLogListCount(0)})}return{t:o,getCount:r,handleToErrorList:s}}});function b(o,n,t,r,s,A){const i=e("Icon"),u=e("Badge"),p=e("Tooltip");return f(),_(p,{title:o.t("layout.header.tooltipErrorLog"),placement:"bottom",mouseEnterDelay:.5,onClick:o.handleToErrorList},{default:a(()=>[c(u,{count:o.getCount,offset:[0,10],overflowCount:99},{default:a(()=>[c(i,{icon:"ion:bug-outline"})]),_:1},8,["count"])]),_:1},8,["title","onClick"])}const v=k(B,[["render",b]]);export{v as default};
