1
zzzz
2024-04-23 adeb6ead0a164d65844efea1a75c2379b6923f39
1
2 files modified
13 ■■■■■ changed files
src/page/register/index.vue 11 ●●●● patch | view | raw | blame | history
src/request/axios.js 2 ●●●●● patch | view | raw | blame | history
src/page/register/index.vue
@@ -200,12 +200,13 @@
        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() {
src/request/axios.js
@@ -116,6 +116,7 @@
    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) {
@@ -148,6 +149,7 @@
          if (result.data.msg != undefined) {
            Toast(i18n.t(result.data.msg));
          }
          console.log(result, "=====");
          return Promise.reject(result.data);
        }
      },