diff --git a/src/layout/components/NavbarRight.vue b/src/layout/components/NavbarRight.vue index 98f97a3b..2bf5d3ee 100644 --- a/src/layout/components/NavbarRight.vue +++ b/src/layout/components/NavbarRight.vue @@ -68,7 +68,7 @@ export default { getUserMsg() { let id = this.$store.getters.userId getUserSimple(id).then(res => { - this.dept = res.data.deptName ? res.data.dept.deptName : '---' + this.dept = res.data.deptName ? res.data.deptName : '---' }) }, async logout() {