"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue-router"),c=require("vue");function i(e){let o=!1,r;const t=c.effectScope(!0);return(...s)=>(o||(r=t.run(()=>e(...s)),o=!0),r)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const u=i(()=>{const e=c.ref([]),o=t=>e.value.includes(t),r=t=>{e.value=t};return{aclList:c.readonly(e),checkPermission:o,setPermission:r}}),a=e=>{const o=l.useRouter(),{ability:r,fallback:t}=e,n=u().checkPermission(r);return n||o.push({path:t}),n};exports.useCheckAcl=a;
//# sourceMappingURL=useCheckAcl.js.map
