This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
handingkang-ohmyweb/static/SwitchRoles-e37e31b4.js
2022-12-30 09:21:24 +00:00

2 lines
881 B
JavaScript

import{bI as a}from"./user-610e4ff5.js";import{a4 as e,k as s,aY as l,aG as o,ay as r,W as t,X as n,D as u,x as i,a2 as d,b1 as m,aB as c,az as p}from"./runtime-core.esm-bundler-9099a418.js";import{_ as v}from"./_plugin-vue_export-helper-1b428a4d.js";const _={class:"switch-roles"},b=(a=>(c("data-v-21f43ea2"),a=a(),p(),a))((()=>n("span",null,"切换权限:",-1))),f=v(e({__name:"SwitchRoles",emits:["change"],setup(e,{emit:c}){const p=a(),v=s(p.roles[0]);return l(v,(async a=>{await p.changeRoles(a),c("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return r(),t("div",null,[n("div",null,"你的权限:"+u(i(p).roles),1),n("div",_,[b,d(l,{modelValue:v.value,"onUpdate:modelValue":e[0]||(e[0]=a=>v.value=a)},{default:m((()=>[d(s,{label:"editor"}),d(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-21f43ea2"]]);export{f as S};