data_center/public/pc/_nuxt/useLockFn.f5d46391.js

2 lines
223 B
JavaScript
Raw Normal View History

2023-09-18 09:11:13 +08:00
import{r as n}from"./entry.834fe740.js";function c(t){const e=n(!1);return{isLock:e,lockFn:async(...a)=>{if(!e.value){e.value=!0;try{const r=await t(...a);return e.value=!1,r}catch(r){throw e.value=!1,r}}}}}export{c as u};