fix(UserProfile): 添加超级用户条件以控制站点认证对话框的显示

This commit is contained in:
jxxghp
2024-11-20 08:16:27 +08:00
parent 2580ceac20
commit 5a647fabfa

View File

@@ -111,7 +111,7 @@ const userLevel = computed(() => store.state.auth.level)
</VListItem>
<!-- 👉 Site Auth -->
<VListItem v-if="userLevel < 2" link @click="showSiteAuthDialog">
<VListItem v-if="userLevel < 2 && superUser" link @click="showSiteAuthDialog">
<template #prepend>
<VIcon class="me-2" icon="mdi-lock-check-outline" size="22" />
</template>