新增:新增上传头像 API,采用本地存储方式存储头像

This commit is contained in:
2023-01-05 22:32:23 +08:00
parent e77c77419b
commit 5252c54c48
54 changed files with 931 additions and 937 deletions

View File

@@ -8,6 +8,5 @@ export default {
'messageBox.noContent': 'No Content',
'messageBox.switchRoles': 'Switch Roles',
'messageBox.userCenter': 'User Center',
'messageBox.userSettings': 'User Settings',
'messageBox.logout': 'Logout',
};

View File

@@ -7,7 +7,6 @@ export default {
'messageBox.viewMore': '查看更多',
'messageBox.noContent': '暂无内容',
'messageBox.switchRoles': '切换角色',
'messageBox.userCenter': '用户中心',
'messageBox.userSettings': '用户设置',
'messageBox.userCenter': '个人中心',
'messageBox.logout': '退出登录',
};

View File

@@ -144,7 +144,7 @@
:size="32"
:style="{ marginRight: '8px', cursor: 'pointer' }"
>
<img alt="avatar" :src="loginStore.avatar ?? getAvatar(loginStore.gender)" />
<img alt="avatar" :src="getAvatar(loginStore)" />
</a-avatar>
<template #content>
<a-doption>
@@ -156,18 +156,10 @@
</a-space>
</a-doption>
<a-doption>
<a-space @click="$router.push({ name: 'Info' })">
<icon-user />
<span>
{{ $t('messageBox.userCenter') }}
</span>
</a-space>
</a-doption>
<a-doption>
<a-space @click="$router.push({ name: 'Setting' })">
<a-space @click="$router.push({ name: 'UserCenter' })">
<icon-settings />
<span>
{{ $t('messageBox.userSettings') }}
{{ $t('messageBox.userCenter') }}
</span>
</a-space>
</a-doption>