保誠-保戶業務員媒合平台
Mila
2021-12-02 f6d46b7c08c91334d30a19e4eadd27a11e50753e
fixed TODO#131354 修改登入成功點選我知道了的跳轉頁面邏輯
修改1個檔案
10 ■■■■ 已變更過的檔案
PAMapp/pages/login/index.vue 10 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/login/index.vue
@@ -505,7 +505,7 @@
  confirmApplySuccess(): void {
    this.phoneSuccessConfirmVisable = false;
    this.registerSuccessConfirmVisable = false;
    this.$router.push('/');
    this.redirect();
  }
  private autoRedirect() {
@@ -514,11 +514,15 @@
      if (this.autoRedirectCounter === 0) {
        clearInterval(this.autoRedirectInterval);
        this.redirect();
      }
    }, 1000)
  }
  private redirect() {
        const backToPrevious = ['questionnaire', 'myConsultantList'];
        const find = backToPrevious.findIndex(item => this.previousPath.includes(item));
        find > -1 ? this.$router.go(-1) : this.$router.push('/');
      }
    }, 1000)
  }
  beforeRouteEnter (to, from, next) {