From 9949a16f341a1c503a4294952f3a52d1c45d8c9f Mon Sep 17 00:00:00 2001 From: Aqr-K <95741669+Aqr-K@users.noreply.github.com> Date: Tue, 22 Oct 2024 01:24:57 +0800 Subject: [PATCH] fix: bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复超管判断条件。 --- src/components/cards/UserCard.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/cards/UserCard.vue b/src/components/cards/UserCard.vue index 4b42ba6f..d3c515aa 100644 --- a/src/components/cards/UserCard.vue +++ b/src/components/cards/UserCard.vue @@ -24,6 +24,9 @@ const props = defineProps({ // 当前用户的ID const currentLoginUserId = computed(() => store.state.auth.userID) +// 当前用户是否是管理员 +const currentUserIsSuperuser = computed(() => store.state.auth.superUser) + // 定义触发的自定义事件 const emit = defineEmits(['remove', 'save']) @@ -126,8 +129,9 @@ onMounted(() => { -
详情
- + +
详情
+
@@ -158,6 +162,7 @@ onMounted(() => {
{ 编辑