浏览代码

邮箱修改增加url参数

hangb 7 年之前
父节点
当前提交
15fd2ce19b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      components/change/ChangeStepEmail.vue
  2. 1 1
      components/encrypted-setting/EncryptedEmail.vue

+ 1 - 1
components/change/ChangeStepEmail.vue

@@ -59,7 +59,7 @@
 //      第一步验证邮箱
       firstStepValidEmail () {
         this.isShowLoading = true
-        this.$http.get(`/sso/change/admin/check/email`)
+        this.$http.get(`/sso/change/admin/check/email`, {params: {url: window.location.href}})
           .then(response => {
             this.isShowLoading = false
             if (response.data.success) {

+ 1 - 1
components/encrypted-setting/EncryptedEmail.vue

@@ -58,7 +58,7 @@
 //      第一步验证邮箱
       firstStepValidEmail () {
         this.isShowLoading = true
-        this.$http.get(`/update/user/check/email`, {params: {email: this.info, operate: 'question'}})
+        this.$http.get(`/update/user/check/email`, {params: {email: this.info, operate: 'question', url: window.location.href}})
           .then(response => {
             this.isShowLoading = false
             if (response.data.success) {