Explorar el Código

Merge branch 'release-201843-wangcz' into dev

wangcz hace 7 años
padre
commit
d21a4d8b25
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  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)