| | |
| | | email: this.form.email, |
| | | verificationCode: this.form.code, |
| | | code: this.form.usercode, |
| | | }).then((res) => { |
| | | if (res.code == 0) { |
| | | phone: this.form.phone, |
| | | }) |
| | | .then(() => { |
| | | this.registerApi(); |
| | | } else { |
| | | this.$toast(this.$t(res.msg)); |
| | | } |
| | | }); |
| | | }) |
| | | .catch((err) => { |
| | | // this.$toast(this.$t(res.msg)); |
| | | }); |
| | | }, |
| | | onFail() { |
| | | this.msg = ""; |
| | |
| | | instance.interceptors.response.use( |
| | | (result) => { |
| | | this.destroy(url); |
| | | |
| | | if (result.data.code == 0 || result.data.code == 200) { |
| | | return result.data; |
| | | } else if (result.data.code == 401) { |
| | |
| | | if (result.data.msg != undefined) { |
| | | Toast(i18n.t(result.data.msg)); |
| | | } |
| | | console.log(result, "====="); |
| | | return Promise.reject(result.data); |
| | | } |
| | | }, |