소스 검색

验证手机验证邮箱完成页面的跳转修改

hangb 7 년 전
부모
커밋
dcc9ee3fd0
3개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 1
      components/mobile/validation/ValidationEmailStepSuccess.vue
  2. 5 1
      components/mobile/validation/ValidationPhoneStepSuccess.vue
  3. 1 1
      nuxt.config.js

+ 5 - 1
components/mobile/validation/ValidationEmailStepSuccess.vue

@@ -33,7 +33,11 @@
     props: ['stepLast'],
     methods: {
       sureAccount () {
-        this.$router.push('/cloudcenter')
+        if (this.$route.query.returnURL) {
+          window.location.href = this.$route.query.returnURL
+        } else {
+          this.$router.push('/cloudcenter')
+        }
       }
     }
   }

+ 5 - 1
components/mobile/validation/ValidationPhoneStepSuccess.vue

@@ -33,7 +33,11 @@
     props: ['stepLast'],
     methods: {
       sureAccount () {
-        this.$router.push('/')
+        if (this.$route.query.returnURL) {
+          window.location.href = this.$route.query.returnURL
+        } else {
+          this.$router.push('/cloudcenter')
+        }
       }
     }
   }

+ 1 - 1
nuxt.config.js

@@ -1,6 +1,6 @@
 const path = require('path')
 const isProdMode = Object.is(process.env.NODE_ENV, 'production')
-const baseUrl = process.env.BASE_URL || (isProdMode ? 'https://sso.ubtob.com/' : 'http://10.1.51.50:8081/')
+const baseUrl = process.env.BASE_URL || (isProdMode ? 'https://sso.ubtob.com/' : 'http://192.168.253.6:36066/')
 
 module.exports = {
   router: {