PAMapp/pages/login/index.vue | ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程 |
PAMapp/pages/login/index.vue
@@ -522,11 +522,13 @@ 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('/'); } beforeRouteEnter (to, from, next) { next(vm => { console.log(from.path, 'beforeRouteEnter'); vm.previousPath = from.path; }) }