Explorar o código

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

sunyanqiang %!s(int64=3) %!d(string=hai) anos
pai
achega
aaf148b197
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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;
       });
     },
   },