From 0b35f2321cd1ea6fea2ef4e0854ad2c0461ee97a Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 15 十二月 2021 16:19:23 +0800 Subject: [PATCH] refactor: AgentDetail --- PAMapp/components/BackActionBar.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PAMapp/components/BackActionBar.vue b/PAMapp/components/BackActionBar.vue index a57cb21..11cfcaf 100644 --- a/PAMapp/components/BackActionBar.vue +++ b/PAMapp/components/BackActionBar.vue @@ -34,7 +34,7 @@ featureLabel = '���“���'; break; case 'agentInfo': - featureLabel = '璆剖�鞈��' + featureLabel = _.isEqual(this.currentRole,Role.ADMIN) ? '���董�����' : '璆剖�鞈��' break; default: featureLabel = '�����'; @@ -60,9 +60,12 @@ return '�����'; } } + pushRouterByLoginRole():void{ - this.$router.go(-1); + const pathName = this.$route.name; + pathName?.includes('myConsultantList') ? this.$router.push('/') : this.$router.go(-1); } + } </script> -- Gitblit v1.8.0