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 @@