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

2 lines
223 B
JavaScript

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};