CzRger 1 неделя назад
Родитель
Сommit
58491bf9cc
1 измененных файлов с 2 добавлено и 1 удалено
  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
       )
     },
   },