refactor: 调整默认头像规则,由基于性别的固定头像调整为基于昵称展示(背景颜色基于昵称计算随机)

This commit is contained in:
2024-10-26 22:20:33 +08:00
parent 2f30df528c
commit 00c909e6f1
9 changed files with 117 additions and 31 deletions

View File

@@ -2,11 +2,9 @@
<a-card class="card" :bordered="false">
<a-row align="center" wrap :gutter="[{ xs: 0, sm: 14, md: 14, lg: 14, xl: 14, xxl: 14 }, 16]" class="content">
<a-space size="medium">
<a-avatar :size="68">
<img :src="userStore.avatar" alt="avatar" />
</a-avatar>
<Avatar :src="userStore.avatar" :name="userStore.nickname" :size="68" />
<div class="welcome">
<p class="hello">{{ goodTimeText() }}{{ userStore.name }}</p>
<p class="hello">{{ goodTimeText() }}{{ userStore.nickname }}</p>
<p>北海虽赊扶摇可接东隅已逝桑榆非晚</p>
</div>
</a-space>