Browse Source

处理个人注册跳转问题

wangcz 7 years ago
parent
commit
c3eb4a257d
1 changed files with 5 additions and 2 deletions
  1. 5 2
      components/register/PersonalRegistration.vue

+ 5 - 2
components/register/PersonalRegistration.vue

@@ -491,8 +491,11 @@
                     }
                   } else {
                     let userUU = response.data.content.userUU
-                    console.log(userUU)
-                    window.location.href = `/overRegister/${userUU}`
+                    let returnUrl = ''
+                    if (this.$route.query.returnURL) {
+                      returnUrl = decodeURIComponent(this.$route.query.returnURL)
+                    }
+                    window.location.href = returnUrl || `/overRegister/${userUU}`
                   }
                 } else {
                   return Promise.reject(response.data)