edu/public/mobile/assets/useLockFn.54caab93.js

2 lines
223 B
JavaScript
Raw Normal View History

2024-11-18 07:44:22 +00:00
import{z as t}from"./index-f587024c.js";function a(a){const n=t(!1);return{isLock:n,lockFn:async(...t)=>{if(!n.value){n.value=!0;try{const o=await a(...t);return n.value=!1,o}catch(o){throw n.value=!1,o}}}}}export{a as u};