From c4834966313bc4294819c90104c397dccd13480b Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期三, 01 十二月 2021 12:00:37 +0800
Subject: [PATCH] update TODO#131235 我的顧問清單下點選 backactionbar 直接導回首頁

---
 PAMapp/components/BackActionBar.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/PAMapp/components/BackActionBar.vue b/PAMapp/components/BackActionBar.vue
index a57cb21..6e28ea3 100644
--- a/PAMapp/components/BackActionBar.vue
+++ b/PAMapp/components/BackActionBar.vue
@@ -60,8 +60,10 @@
       return '�����';
     }
   }
+
   pushRouterByLoginRole():void{
-    this.$router.go(-1);
+    const previousPageName = this.$route.name;
+    previousPageName?.includes('myConsultantList') ? this.$router.push('/') : this.$router.go(-1);
   }
 }
 </script>

--
Gitblit v1.8.0