Forráskód Böngészése

管理员拥有所有权限

CzRger 1 hete%!(EXTRA string=óta)
szülő
commit
58491bf9cc
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      src/stores/modules/app.ts

+ 2 - 1
src/stores/modules/app.ts

@@ -17,7 +17,8 @@ export const useAppStore = defineStore('app', {
   getters: {
     isSuperAdmin() {
       return (
-        this.userInfo?.loginId === (import.meta as any).env.VITE_SUPER_ADMIN
+        this.userInfo?.loginId === (import.meta as any).env.VITE_SUPER_ADMIN ||
+        this.userInfo?.type == 0
       )
     },
   },