From 5cebef0f593ff1815ab8fba6a2214cc1e194eab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Wed, 18 Jan 2023 10:54:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E8=AF=A6=E6=83=85-=E8=87=AA=E5=8A=A8=E5=8C=96=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=B2=A1=E6=9C=89=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/getters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/getters.js b/src/store/getters.js index 8c169f3a1..0141af7af 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -28,6 +28,6 @@ const getters = { currentUserIsSuperAdmin: state => state.users.isSuperAdmin, currentUserIsAdmin: state => state.users.isAdmin, hasValidLicense: state => state.settings.hasValidLicense, - isSystemAdmin: state => state.users.profile.system_roles.includes('00000000-0000-0000-0000-000000000001') + isSystemAdmin: state => state.users.profile.system_roles.some(i => (i?.id === '00000000-0000-0000-0000-000000000001')) } export default getters