var l=(o,u,t)=>new Promise((c,s)=>{var m=e=>{try{r(t.next(e))}catch(i){s(i)}},n=e=>{try{r(t.throw(e))}catch(i){s(i)}},r=e=>e.done?c(e.value):Promise.resolve(e.value).then(m,n);r((t=t.apply(o,u)).next())});import{aP as k,a as C,dq as B,l as F,by as A,f as P,fr as D,aQ as a,o as b,aR as g,p as d,j as p,i as v,fs as M,q as _}from"./index.0d073eaa.js";import{P as S}from"./index.566277e5.js";import{A as h}from"./index.ffb8ac7d.js";import{S as y}from"./index.81899e8a.js";import T from"./CurrentPermissionMode.ded9592f.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./eagerComputed.156e81ff.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";import"./useFlexGapSupport.474c31b7.js";import"./index.0fb15725.js";const $=C({components:{Space:y,Alert:h,CurrentPermissionMode:T,PageWrapper:S},setup(){const{refreshMenu:o}=B(),u=F(),t=A(),c=P(()=>t.getProjectConfig.permissionMode===M.BACK);function s(m){return l(this,null,function*(){const n="fakeToken"+m;u.setToken(n),u.getUserInfoAction(),o()})}return{RoleEnum:D,refreshMenu:o,switchToken:s,isBackPermissionMode:c}}}),w={class:"mt-4"},x=_(" \u6743\u9650\u5207\u6362(\u8BF7\u5148\u5207\u6362\u6743\u9650\u6A21\u5F0F\u4E3A\u540E\u53F0\u6743\u9650\u6A21\u5F0F): "),N=_(" \u83B7\u53D6\u7528\u6237id\u4E3A1\u7684\u83DC\u5355 "),V=_(" \u83B7\u53D6\u7528\u6237id\u4E3A2\u7684\u83DC\u5355 ");function W(o,u,t,c,s,m){const n=a("CurrentPermissionMode"),r=a("Alert"),e=a("a-button"),i=a("Space"),f=a("PageWrapper");return b(),g(f,{title:"\u540E\u53F0\u6743\u9650\u793A\u4F8B",contentBackground:"",contentClass:"p-4",content:"\u76EE\u524Dmock\u4E86\u4E24\u7EC4\u6570\u636E\uFF0C id\u4E3A1 \u548C 2 \u5177\u4F53\u8FD4\u56DE\u7684\u83DC\u5355\u53EF\u4EE5\u5728mock/sys/menu.ts\u5185\u67E5\u770B"},{default:d(()=>[p(n),p(r,{class:"mt-4",type:"info",message:"\u70B9\u51FB\u540E\u8BF7\u67E5\u770B\u5DE6\u4FA7\u83DC\u5355\u53D8\u5316","show-icon":""}),v("div",w,[x,p(i,null,{default:d(()=>[p(e,{onClick:u[0]||(u[0]=E=>o.switchToken(1)),disabled:!o.isBackPermissionMode},{default:d(()=>[N]),_:1},8,["disabled"]),p(e,{onClick:u[1]||(u[1]=E=>o.switchToken(2)),disabled:!o.isBackPermissionMode},{default:d(()=>[V]),_:1},8,["disabled"])]),_:1})])]),_:1})}var oe=k($,[["render",W],["__scopeId","data-v-37179b92"]]);export{oe as default};
