From 04bc0c7e0606d7d29f5284df07e60a67b3dd883b Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期一, 13 十二月 2021 12:08:22 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- PAMapp/components/Consultant/ConsultantList.vue | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantList.vue b/PAMapp/components/Consultant/ConsultantList.vue index 1a1b3fb..57c8e06 100644 --- a/PAMapp/components/Consultant/ConsultantList.vue +++ b/PAMapp/components/Consultant/ConsultantList.vue @@ -8,12 +8,12 @@ :agentInfo="agent" ></ConsultantCard> </template> - <template v-if="isLogin && agentList.length === 0"> + <template v-if="isUserLogin && agentList.length === 0"> <div class="emptyRowStyle"> <div class="smTxt txt">����撌脤憿批��</div> </div> </template> - <template v-if="!isLogin"> + <template v-if="!isUserLogin"> <div class="emptyRowStyle"> <div class="mdTxt login fix-chrome-click--issue" @click="$router.push('/login')">�� | 閮餃��</div> <div class="smTxt txt ">���憭�</div> @@ -32,11 +32,8 @@ @Component export default class ConsultantList extends Vue { @Prop() agents!: Consultant[]; - @roleStorage.Getter currentRole!:string; + @roleStorage.Getter isUserLogin!:boolean; - get isLogin() { - return this.currentRole === Role.USER; - } get agentList(){ return this.agents.map((agentDto)=> ({...agentDto,customerScore:0,}) -- Gitblit v1.8.0