import{c as e}from"./index-6530d0f6.js";import{E as n}from"./element-plus-842069d4.js";const r=(r,s,t)=>{const l=((n=null)=>{const r=n||e.getItem("version")||"null";let s=[];return r&&(s=r.map((e=>e.perms))),s})(),m=((n=null)=>{const r=n||e.getItem("userInfo")||"null";let s=[];return r&&r.userPermissionList&&(s=r.userPermissionList.map((e=>e.perms))),s})();let i="";-1!==r.indexOf("ver.perm")?i=l:t&&1===t?i=m:-1!==location.href.indexOf("/farm/")||(i=m);let o=!1;return i.includes(r)||(o=!0,!s&&n.warning("暂无权限操作")),o};export{r as n}; //# sourceMappingURL=permission-0bbfb5e8.js.map