import{e as u,_ as c}from"./index-S1sRAIbm.js";import{p as _,a as p,b as m,ai as r,q as v,t as f,v as t,T as b,u as w,U as a,O as S}from"./vue-C8lPpR34.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色："+b(w(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户（模拟重新登录）：",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:S(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S};
