text: import{X as s,al as e,b7 as o}from"./index.63ccfb82.js";import{y as i,aZ as n,j as r,Z as a,B as t,F as m,v as d,a2 as c,a9 as l,J as p}from"./vendor.880b4c6c.js";/* empty css              */var u=i({name:"CurrentPermissionMode",components:{Divider:n},setup(){const i=s(),n=r((()=>i.getProjectConfig.permissionMode)),{togglePermissionMode:a}=e();return{permissionMode:n,PermissionModeEnum:o,togglePermissionMode:a}}});const M={class:"mt-2"},f=l(" 当前权限模式： "),g=l(" 切换权限模式 ");u.render=function(s,e,o,i,n,r){const u=a("a-button"),P=a("Divider");return t(),m("div",M,[f,d(u,{type:"link"},{default:c((()=>[l(p(s.permissionMode===s.PermissionModeEnum.BACK?"后台权限模式":"前端角色权限模式"),1)])),_:1}),d(u,{class:"ml-4",onClick:s.togglePermissionMode,type:"primary"},{default:c((()=>[g])),_:1},8,["onClick"]),d(P)])};export default u;
  