From 9bfe3904c406621bdf20e6977ebe6f3680e4255f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Wed, 7 Jul 2021 17:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=99=BB=E5=BD=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/src/mixins/access.js | 4 + .../src/views/layout/components/Navbar.vue | 135 +++++++++--------- 2 files changed, 68 insertions(+), 71 deletions(-) diff --git a/report-ui/src/mixins/access.js b/report-ui/src/mixins/access.js index 805c9bb7..c32a39ac 100644 --- a/report-ui/src/mixins/access.js +++ b/report-ui/src/mixins/access.js @@ -6,6 +6,10 @@ export default { } }, computed: { + username: function(){ + var username = getItem('username') + return username + }, getUser: function(){ // var user = getItem('user'); var user =JSON.parse(localStorage.getItem('user')) diff --git a/report-ui/src/views/layout/components/Navbar.vue b/report-ui/src/views/layout/components/Navbar.vue index 10d5449f..05b0ece3 100644 --- a/report-ui/src/views/layout/components/Navbar.vue +++ b/report-ui/src/views/layout/components/Navbar.vue @@ -1,16 +1,12 @@