增加账号展示
This commit is contained in:
parent
cdf6f6f5f5
commit
b205eda476
|
|
@ -54,6 +54,7 @@
|
|||
<el-dropdown trigger="click">
|
||||
<img :size="30" src="@/assets/img/menu/iconUser.png" />
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item>{{ userName }}</el-dropdown-item>
|
||||
<el-dropdown-item @click.native="passClick">
|
||||
修改密码
|
||||
</el-dropdown-item>
|
||||
|
|
@ -222,7 +223,8 @@ export default {
|
|||
],
|
||||
fromItem: {},
|
||||
dialog: false,
|
||||
isAdmins: false
|
||||
isAdmins: false,
|
||||
userName: ""
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
|
|
@ -238,6 +240,7 @@ export default {
|
|||
this.isAdmins = JSON.parse(localStorage.getItem("isAdmin"));
|
||||
this.updateTime();
|
||||
setInterval(this.updateTime, 1000); // 每秒更新一次时间
|
||||
this.userName = localStorage.getItem("userName");
|
||||
},
|
||||
methods: {
|
||||
updateTime() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue