From 27c419054caf6d2e31713372579126812a747edc Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 09 五月 2022 10:53:23 +0800
Subject: [PATCH] 調整 忘記密碼url變數,新增 .env.prod

---
 PAMapp/pages/consultantLogin/index.vue |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/PAMapp/pages/consultantLogin/index.vue b/PAMapp/pages/consultantLogin/index.vue
index 7fb8f29..8289302 100644
--- a/PAMapp/pages/consultantLogin/index.vue
+++ b/PAMapp/pages/consultantLogin/index.vue
@@ -19,7 +19,7 @@
       <div class="pam-paragraph">
         <div class="password-Txt">
           <div class="pam-consultant-login__title ">撖Ⅳ</div>
-          <div class="password-reset" @click="passwordReset">敹��Ⅳ</div>
+          <div class="password-reset" @click="resetPassword">敹��Ⅳ</div>
         </div>
         <div class="position-r mt-10">
           <input :type="[ isShowPassword ? 'text' : 'password']"
@@ -133,15 +133,8 @@
       return !!(this.verificationCode && this.consultantDto.username && this.consultantDto.password);
     }
 
-    passwordReset() {
-       const uatResetUrl = 'https://eserviceuat.pcalife.com.tw/sso/reset_password/agentInputUserInfo.html?sys=epos'
-      const prodResetUrl ='https://www.eservice.pcalife.com.tw/sso/reset_password/agentInputUserInfo.html?sys=epos'
-      if (process.env.ENV === 'uat') {
-        window.open(uatResetUrl);
-      }
-      else {
-        window.open(prodResetUrl);
-      }
+    resetPassword() {
+        window.open(process.env.CONSULTANT_FORGET_PASSWORD_URL);
     }
 
 

--
Gitblit v1.8.0