fix: auth modal double icon

This commit is contained in:
2024-08-02 15:27:04 +08:00
parent 404888f61f
commit f962d1f3aa

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import {Label, PinInputInput, PinInputRoot} from 'radix-vue'
import {useFetchWrapped} from '~/composables/useFetchWrapped';
import { Label, PinInputInput, PinInputRoot } from 'radix-vue'
import { useFetchWrapped } from '~/composables/useFetchWrapped'
const toast = useToast()
const modal = useModal()
@@ -199,7 +199,6 @@ const handle_sms_verify = (e: string[]) => {
<UTabs :items="items" class="w-full">
<template #default="{ item, index, selected }">
<div class="flex items-center gap-2 relative truncate">
<UIcon :name="item.icon" class="w-4 h-4 flex-shrink-0"/>
<span class="truncate">{{ item.label }}</span>
<span v-if="selected" class="absolute -right-4 w-2 h-2 rounded-full bg-primary-500 dark:bg-primary-400"/>
</div>