From 34b08e1c461f5e08675fcff95525956d7c4bef11 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期四, 17 二月 2022 11:38:48 +0800 Subject: [PATCH] Merge branch 'Phase3' into pollex-dev --- PAMapp/pages/login/index.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/PAMapp/pages/login/index.vue b/PAMapp/pages/login/index.vue index 64a188b..2aacaec 100644 --- a/PAMapp/pages/login/index.vue +++ b/PAMapp/pages/login/index.vue @@ -355,6 +355,9 @@ @roleStorage.Mutation storageRole!: (role:string) => void; + @roleStorage.Mutation + storageUserInfo!: (userInfo: RegisterInfo) => void; + @Ref('contract') readonly contract!: any; connectDevice: 'MOBILE' | 'EMAIL' = 'MOBILE'; @@ -396,7 +399,6 @@ beforeRouteEnter (to, from, next) { next(vm => { - console.log(from.path, 'beforeRouteEnter'); vm.previousPath = from.path; }) } @@ -498,7 +500,6 @@ private redirect() { const backToPrevious = ['questionnaire', 'myConsultantList']; const find = backToPrevious.findIndex(item => this.previousPath.includes(item)); - console.log(this.previousPath, find, 'redirect'); find > -1 ? this.$router.go(-1) : this.$router.push('/'); } @@ -636,7 +637,9 @@ private storagePhoneOrEmail(registerInfo:RegisterInfo):void{ const info = {...registerInfo, time: new Date()} - localStorage.setItem('userInfo',JSON.stringify(info)); + // storageUserInfo!: (userInfo: RegisterInfo) => void; + this.storageUserInfo(info); + // localStorage.setItem('userInfo',JSON.stringify(info)); } private removeOtpTime() { -- Gitblit v1.8.0