diff --git a/src/views/contentData/headerTop/index.vue b/src/views/contentData/headerTop/index.vue index f8ebf7f..99ed5fb 100644 --- a/src/views/contentData/headerTop/index.vue +++ b/src/views/contentData/headerTop/index.vue @@ -54,6 +54,7 @@ + {{ userName }} 修改密码 @@ -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() {