mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
2 lines
482 B
JavaScript
2 lines
482 B
JavaScript
import{r as e,i as t,bi as a}from"./index-DNpdoF5v.js";function l(){const l=e(!1),o=e(t.t("验证码"));let n;function r(){void 0!==n&&(clearInterval(n),n=void 0)}return a(r),{disabled:l,codeText:o,captchaType:"blockPuzzle",sendCode:function(){if(l.value)return;l.value=!0;let e=60;o.value=t.t("剩余")+e+"s",n=setInterval(()=>{if(e-=1,e<0)return clearInterval(n),n=void 0,l.value=!1,void(o.value=t.t("重新获取"));o.value=t.t("剩余")+e+"s"},1e3)},stopCode:r}}export{l as u};
|