feat: 用户管理和数字人授权

This commit is contained in:
2024-08-20 03:36:25 +08:00
parent 777aecd1cb
commit 2bf4bfad81
17 changed files with 989 additions and 464 deletions

View File

@@ -38,13 +38,18 @@ const activeClass = computed(() => {
v-if="!hide"
:class="{
[activeClass]: active,
'hover:bg-neutral-200': !active,
'hover:bg-neutral-200 dark:hover:bg-neutral-800': !active,
}"
:to="to"
class="px-4 py-3 flex items-center gap-2 rounded-lg transition cursor-pointer"
class="px-4 py-3 flex justify-between items-center rounded-lg transition cursor-pointer"
>
<Icon :name="icon" class="text-xl inline"/>
<h1 class="text-[14px] font-medium">{{ label }}</h1>
<div class="flex items-center gap-2">
<Icon :name="icon" class="text-xl inline"/>
<h1 class="flex-1 text-[14px] font-medium line-clamp-1">
{{ label }}
</h1>
</div>
<UBadge v-if="admin" color="amber" label="OP" size="xs" variant="subtle"/>
</NuxtLink>
</template>