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/index.afc6fd72.js
2022-08-22 09:16:25 +00:00

2 lines
491 B
JavaScript

import{_ as n,b as a,o as e,a as s,z as r,v as t,f as i,r as d}from"./index.1fbeedfe.js";const o={class:"app-container"};const c=n({},[["render",function(n,s){return e(),a("div",o,"Admin 权限可见")}]]),u={class:"app-container"};const f=n({},[["render",function(n,s){return e(),a("div",u,"Editor 权限可见")}]]),l=s({__name:"index",setup(n){const a=r(),s=t("admin");return a.roles.includes("admin")||(s.value="editor"),(n,a)=>(e(),i(d("admin"===s.value?c:f)))}});export{l as default};