dcc
2024-06-07 d5381ec06ab5f549fade867c3a874de613bdd5d4
src/page/register/index copy.vue
@@ -229,24 +229,7 @@
                        break;
                    }
            }
            Axios.registerUser({
                username: (this.activeIndex == 0 || this.activeIndex == 1) ? this.username : `${this.username}`,
                password: this.password,
                re_password: this.repassword,
                type: this.type,
                usercode: this.invitCode,
            }).then((res) => {
                this.GET_USERINFO(res.data)
                if (this.activeIndex == 0||this.activeIndex == 2) {
                    this.$router.push('/setFond')
                }
                else  {
                    this.$router.push({ name: 'verify', query: { type: this.activeIndex, account: this.activeIndex == 1 ? this.username : `${this.username}` } })
                }
            }).catch((error) => {
                if (error.code === 'ECONNABORTED') { this.$toast(this.$t('网络超时!')); }
                else if (error.msg !== undefined) { this.$toast(this.$t(error.msg)); }
            });
          c
        }
    }
}