mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-10-17 04:57:15 +08:00
refactor: 调整默认头像规则,由基于性别的固定头像调整为基于昵称展示(背景颜色基于昵称计算随机)
This commit is contained in:
@@ -11,10 +11,9 @@
|
||||
:on-before-upload="onBeforeUpload"
|
||||
>
|
||||
<template #upload-button>
|
||||
<a-avatar :size="100">
|
||||
<Avatar :src="avatarList[0].url" :name="userStore.nickname" :size="100" trigger>
|
||||
<template #trigger-icon><icon-camera /></template>
|
||||
<img v-if="avatarList.length" :src="avatarList[0].url" alt="avatar" />
|
||||
</a-avatar>
|
||||
</Avatar>
|
||||
</template>
|
||||
</a-upload>
|
||||
<div class="name">
|
||||
|
Reference in New Issue
Block a user