suyuan/public/mobile/assets/useLockFn.4d99e11c.js

2 lines
223 B
JavaScript

import{z as a}from"./index.26a6cf84.js";function t(t){const c=a(!1);return{isLock:c,lockFn:async(...a)=>{if(!c.value){c.value=!0;try{const n=await t(...a);return c.value=!1,n}catch(n){throw c.value=!1,n}}}}}export{t as u};