From 77391adb46aff7dcd387e75ca8fb10b87afc31eb Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Thu, 10 Oct 2019 22:44:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E5=90=88=E7=99=BB=E5=BD=95=20?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E7=99=BB=E9=99=86=E7=99=BD=E9=A1=B5=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QMPlusVuePage/src/store/module/user.js | 4 +- QMPlusVuePage/src/view/dashbord/index.vue | 2 +- QMPlusVuePage/src/view/layout/index.vue | 46 ++++++++++++++++++----- 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/QMPlusVuePage/src/store/module/user.js b/QMPlusVuePage/src/store/module/user.js index 034bb2ae..fc3678d8 100644 --- a/QMPlusVuePage/src/store/module/user.js +++ b/QMPlusVuePage/src/store/module/user.js @@ -30,7 +30,7 @@ export const user = { state.userInfo = {} state.token = "" state.expiresAt = "" - router.push({ name: 'login' }) + router.push({ name: 'login', replace: true }) } }, @@ -46,7 +46,7 @@ export const user = { if (redirect) { router.push({ path: redirect, replace: true }) } else { - router.push({ name: 'dashboard', replace: true }) + router.push({ path: '/layout/dashbord', replace: true }) } } } catch (err) { diff --git a/QMPlusVuePage/src/view/dashbord/index.vue b/QMPlusVuePage/src/view/dashbord/index.vue index 607a062a..33e89b6f 100644 --- a/QMPlusVuePage/src/view/dashbord/index.vue +++ b/QMPlusVuePage/src/view/dashbord/index.vue @@ -10,7 +10,7 @@
用户ID:{{userInfo.uuid}}
用户昵称:{{userInfo.nickName}}
-
用户组:{{userInfo.authority.authorityName}}
+
用户组:{{userInfo.authority&&userInfo.authority.authorityName}}
diff --git a/QMPlusVuePage/src/view/layout/index.vue b/QMPlusVuePage/src/view/layout/index.vue index 4a6096f0..f2adf4c5 100644 --- a/QMPlusVuePage/src/view/layout/index.vue +++ b/QMPlusVuePage/src/view/layout/index.vue @@ -1,9 +1,20 @@