右上角头像

This commit is contained in:
吕金泽 2022-02-01 19:04:36 +08:00
parent d60ef3f8ef
commit 13404cf208
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
"name" : "个人信息修改",
"createTime" : null,
"updateTime" : 1643710989215,
"updateTime" : 1643713357950,
"lock" : "0",
"method" : "POST",
"path" : "/center/update",
@ -31,4 +31,4 @@ var data = {
if(newPassword){
data.password = newPassword ? SaSecureUtil.sha256(newPassword) : ''
}
return db.table('sys_user').primary('id').update(data)
return db.table('sys_user').primary('id').update(data, true)

View File

@ -16,7 +16,7 @@
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
<div class="avatar-wrapper">
<img src="@/assets/magic-boot.png" style="width: 28px" class="user-avatar">
<img :src="$store.getters.userInfo.headPortrait ? $filePrefix + $store.getters.userInfo.headPortrait : require('@/assets/magic-boot.png')" style="width: 28px; height: 28px" class="user-avatar">
<span style="font-size: 14px">{{ $store.getters.username }}({{ $store.getters.name }})</span>
<i class="el-icon-caret-bottom" />
</div>