|
|
@@ -113,16 +113,16 @@ let vm = new Vue({
|
|
|
send: async function () {
|
|
|
this.$refs["params"].validate(async valid => {
|
|
|
if (valid) {
|
|
|
+ let hostParts = window.location.host.split('.');
|
|
|
+ let tld = hostParts.slice(2).join('.') || 'com';
|
|
|
let _this = this;
|
|
|
axios.defaults.headers.common['Language'] = this.language == 'cn' ? 'cn' : 'en';
|
|
|
axios.defaults.headers.common['Access-Token'] = window.location.search.split('?token=')[1].split('&login=')[0];
|
|
|
- axios.post('https://secure.' + this.ho + '.com/account/deal/password/reset/apply', {
|
|
|
+ axios.post('https://secure.' + this.ho + '.' + tld + '/account/deal/password/reset/apply', {
|
|
|
...this.params
|
|
|
//参数
|
|
|
}).then(res => {//请求成功后的处理函数
|
|
|
if (res.data.code == 200) {
|
|
|
- let hostParts = window.location.host.split('.');
|
|
|
- let tld = hostParts.slice(2).join('.') || 'com';
|
|
|
this.$message({
|
|
|
message: this.lang.success,
|
|
|
type: 'success'
|