import{d as m,e as p,U as u,a2 as d,a3 as c,G as s,k as t,af as i,a5 as l}from"./vue-vendor-CxLCUzY4.js";import{z as f,U as F,bu as _,_ as C}from"./index-B_2CoVdl.js";import{W as M}from"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";const A=m({name:"CurrentPermissionMode",components:{Divider:M},setup(){const o=f(),e=p(()=>o.getProjectConfig.permissionMode),{togglePermissionMode:n}=F();return{permissionMode:e,PermissionModeEnum:_,togglePermissionMode:n}}}),P={class:"mt-2"};function g(o,e,n,D,k,v){const r=u("a-button"),a=u("Divider");return d(),c("div",P,[e[1]||(e[1]=s(" 当前权限模式： ")),t(r,{type:"link"},{default:i(()=>[s(l(o.permissionMode===o.PermissionModeEnum.BACK?"后台权限模式":"前端角色权限模式"),1)]),_:1}),t(r,{class:"ml-4",onClick:o.togglePermissionMode,type:"primary"},{default:i(()=>e[0]||(e[0]=[s(" 切换权限模式 ")])),_:1},8,["onClick"]),t(a)])}const B=C(A,[["render",g]]);export{B as default};
