Эх сурвалжийг харах

邮箱修改增加url参数

hangb 7 жил өмнө
parent
commit
15fd2ce19b

+ 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) {