diff --git a/src/views/index.vue b/src/views/index.vue index 94f05c9..3b8da63 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -23,10 +23,10 @@
- + - 您好xxx + 您好,{{ userName }} 退出登录 @@ -72,6 +72,7 @@ export default { loading: true, searchList:[], getData:{}, + userName:'', } }, watch:{ @@ -90,7 +91,13 @@ export default { } }, created() { this.dataNow(1) }, - mounted() { this.getDataInterval(1) }, + mounted() { + this.getDataInterval(1) + console.log(localStorage.getItem('userDto')) + let user = JSON.parse(localStorage.getItem('userDto')) + console.log(user) + this.userName = user.realName + }, methods: { gotoBgpage() { if(this.input) {