From e388875dc3e526de1253af929efe0836c8fd6a67 Mon Sep 17 00:00:00 2001 From: 2910410219 <2910410219@qq.com> Date: Tue, 12 May 2026 15:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B6=85=E7=BA=A7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E8=A7=92=E8=89=B2=E6=A3=80=E6=9F=A5=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 `checkIsSuperAdmin` 函数的返回值处理,确保正确获取超级管理员状态,提升权限管理的准确性。 --- src/views/digitalHuman/creation/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/digitalHuman/creation/index.vue b/src/views/digitalHuman/creation/index.vue index 546b520..05eb64e 100644 --- a/src/views/digitalHuman/creation/index.vue +++ b/src/views/digitalHuman/creation/index.vue @@ -2388,8 +2388,8 @@ onMounted(async () => { // 获取当前用户角色 try { - const res = await checkIsSuperAdmin(); - isSuperAdmin.value = res.data || false; + const res: any = await checkIsSuperAdmin(); + isSuperAdmin.value = res.data?.isSuperAdmin || false; } catch (error) { isSuperAdmin.value = false; }