Files
qhmes/deploy-qhmes/frontend/js/useLockFn-2R7tq9pj.js
2026-05-15 11:34:12 +08:00

2 lines
462 B
Java

var c=(n,r,t)=>new Promise((a,o)=>{var s=e=>{try{u(t.next(e))}catch(f){o(f)}},l=e=>{try{u(t.throw(e))}catch(f){o(f)}},u=e=>e.done?a(e.value):Promise.resolve(e.value).then(s,l);u((t=t.apply(n,r)).next())});import{f as i,u as v}from"./vue-vendor-C7Zq48Yl.js";function m(n){const r=i(!1);return function(...t){return c(this,null,function*(){if(!v(r)){r.value=!0;try{const a=yield n(...t);return r.value=!1,a}catch(a){throw r.value=!1,a}}})}}export{m as useLockFn};