import{a as m}from"./vue-router.64fdcd9a.js";import{g as l}from"./message.c2517484.js";import"./element-plus.55d71530.js";import{d as p,r,i as f,Z as d}from"./@vue.96c135a1.js";const D=p({__name:"interval_alert",props:{business_code:{type:String,required:!0,default:()=>""}},setup(s){const a=s,c=r(60),i=r(!1);m();let t;f(()=>{t=window.setInterval(n,c.value*1e3)}),d(()=>{clearInterval(t)});const n=async()=>{try{const e=await l({business_code:a.business_code}),o=Date.now(),_=Math.floor(o/1e3);i.value||u(e)}catch(e){console.error("\u8BF7\u6C42\u5931\u8D25:",e)}},u=e=>{e.confirm_code==101};return n(),(e,o)=>null}});export{D as _};
