From 344bf506e1fdaec4fb6d30168fe0b2329b672ad0 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期三, 01 十二月 2021 12:00:54 +0800 Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM --- PAMapp/components/NavBar.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/PAMapp/components/NavBar.vue b/PAMapp/components/NavBar.vue index e55c62c..ba27b33 100644 --- a/PAMapp/components/NavBar.vue +++ b/PAMapp/components/NavBar.vue @@ -45,6 +45,7 @@ @roleStorage.Mutation storageClearRecommendConsultant!: () => void; @roleStorage.Getter idToken!: string | null; @roleStorage.Getter currentRole!: string | null; + @roleStorage.Getter consultantId!: string | null; navBarList = [{ authorityOfRoleList: [Role.NOT_LOGIN], @@ -58,7 +59,7 @@ }, { authorityOfRoleList:[Role.ADMIN], - routeUrl: '/consultantAccountSetting', + routeUrl: '/agentInfo/', title: '���董�����', }, { @@ -96,15 +97,17 @@ routerNavigateTo(url: string): void { (this.$refs.dropdown as any).hide(); - _.isEqual(url, '') ? this.fakeLogout() : this.$router.push(url); + _.isEqual(url,'') + ? this.logout() + : this.$router.push(_.isEqual(url,'/agentInfo/') ? url+this.consultantId :url); } pushRouterByLoginRole(): void { const link = _.isEqual(this.currentRole, Role.ADMIN) ? '/myAppointmentList/appointmentList' : '/'; this.$router.push(link); } - // TODO: ��TP隤����� ���蝙� - fakeLogout(): void { + + logout(): void { this.storageClear(); this.storageClearQuickFilter(); this.storageClearRecommendConsultant(); -- Gitblit v1.8.0