From 512986faf629b0dbb6b4f678c8731e6669718d07 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 26 Feb 2024 10:28:16 +0800 Subject: [PATCH] fix navbar right --- src/layout/components/NavbarRight.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {