|
@@ -92,10 +92,8 @@ let vm = new Vue({
|
|
|
send: async function () {
|
|
send: async function () {
|
|
|
this.$refs["params"].validate(async valid => {
|
|
this.$refs["params"].validate(async valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
- let hostParts = window.location.host.split('.');
|
|
|
|
|
- let tld = hostParts.slice(2).join('.') || 'com';
|
|
|
|
|
axios.defaults.headers.common['Access-Token'] = window.location.search.split('?token=')[1];
|
|
axios.defaults.headers.common['Access-Token'] = window.location.search.split('?token=')[1];
|
|
|
- axios.post('https://admin.' + this.ho + "." + tld + '/user/update/email/password', {
|
|
|
|
|
|
|
+ axios.post('https://admin.' + this.ho + '.com/user/update/email/password', {
|
|
|
...this.params
|
|
...this.params
|
|
|
//参数
|
|
//参数
|
|
|
}).then(res => {//请求成功后的处理函数
|
|
}).then(res => {//请求成功后的处理函数
|
|
@@ -105,7 +103,7 @@ let vm = new Vue({
|
|
|
type: 'success'
|
|
type: 'success'
|
|
|
});
|
|
});
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- window.location.href = 'https://admin.' + this.ho + "." + tld
|
|
|
|
|
|
|
+ window.location.href = 'https://admin.' + this.ho + '.com'
|
|
|
}, 2000);
|
|
}, 2000);
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(res.data.msg);
|
|
this.$message.error(res.data.msg);
|