import{I as l,bd as m,v as d,x as _,_ as f}from"./index.js";import{d as g,S as E,c as C,Z as L,a4 as h,a5 as a,a6 as e,k as c}from"./vue-72a104e4.js";import{T,ay as k}from"./antd-0679333d.js";const B=g({name:"ErrorAction",components:{Icon:l,Tooltip:T,Badge:k},setup(){const{t:o}=d(),{push:n}=E(),t=m(),r=C(()=>t.getErrorLogListCount);function s(){n(_.ERROR_LOG_PAGE).then(()=>{t.setErrorLogListCount(0)})}return{t:o,getCount:r,handleToErrorList:s}}});function I(o,n,t,r,s,R){const u=e("Icon"),i=e("Badge"),p=e("Tooltip");return L(),h(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 y=f(B,[["render",I]]);export{y as default};
