Browse Source

完成了导航栏显示用户名称,跟所属单位

sunyanqiang 3 years ago
parent
commit
aaf148b197
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/layout/components/Navbar.vue

+ 1 - 2
src/layout/components/Navbar.vue

@@ -107,7 +107,6 @@ export default {
     if (this.$route.query.name == "/regulations") {
       this.sidebar.opened = false;
     }
-    // /print
   },
   methods: {
     toggleSideBar() {
@@ -130,7 +129,7 @@ export default {
       getUserProfile().then((response) => {
         this.user = response.data;
         this.danWie = response.data.dept.deptName;
-        this.yongHu = response.data.dept.leader;
+        this.yongHu = response.data.nickName;
       });
     },
   },