fix: icon error

v3.2
wangdan-fit2cloud 2025-09-29 17:58:45 +08:00
parent 75531b671c
commit 8f16358e20
1 changed files with 3 additions and 2 deletions

View File

@ -2,13 +2,13 @@
<el-avatar <el-avatar
v-if="isAppIcon(item?.icon)" v-if="isAppIcon(item?.icon)"
shape="square" shape="square"
:size="32" :size="size || 32"
style="background: none" style="background: none"
class="mr-8" class="mr-8"
> >
<img :src="item?.icon" alt="" /> <img :src="item?.icon" alt="" />
</el-avatar> </el-avatar>
<LogoIcon v-else height="32px" /> <LogoIcon v-else :height="`${size}px`" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { isAppIcon } from '@/utils/common' import { isAppIcon } from '@/utils/common'
@ -17,5 +17,6 @@ const props = defineProps<{
name: string name: string
icon: string icon: string
} }
size?: string | number
}>() }>()
</script> </script>