feat: 系统设置页面左上角用户头像修改
This commit is contained in:
parent
a98717517d
commit
04a022a4f3
|
@ -1,12 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<el-row type="flex" align="middle" class="current-user">
|
<el-row type="flex" align="middle" class="current-user">
|
||||||
<el-avatar shape="square" size="small" :src="squareUrl"/>
|
<div class="icon-title">
|
||||||
|
{{ currentUser.name.substring(0, 1) }}
|
||||||
|
</div>
|
||||||
<span class="username">{{ currentUser.name }}</span>
|
<span class="username">{{ currentUser.name }}</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentUser} from "../../../common/js/utils";
|
import {getCurrentUser} from "@/common/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MsCurrentUser",
|
name: "MsCurrentUser",
|
||||||
|
@ -15,7 +17,6 @@
|
||||||
return {
|
return {
|
||||||
editVisible: false,
|
editVisible: false,
|
||||||
id: "123456",
|
id: "123456",
|
||||||
squareUrl: "https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png",
|
|
||||||
form: {}
|
form: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -57,4 +58,16 @@
|
||||||
.current-user:hover .edit {
|
.current-user:hover .edit {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-title {
|
||||||
|
color: #fff;
|
||||||
|
width: 30px;
|
||||||
|
background-color: #72dc91;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 30px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue