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

2 lines
223 B
JavaScript
Raw Permalink Normal View History

2023-11-21 11:51:27 +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};