@@ -137,13 +137,14 @@ export default { | |||||
return; | return; | ||||
} | } | ||||
this.form.accountType = '1'; | this.form.accountType = '1'; | ||||
var that = this | |||||
userRegister(this.form).then((res) => { | userRegister(this.form).then((res) => { | ||||
this.$toast({ | this.$toast({ | ||||
icon: 'success', // 找到自己需要的图标 | icon: 'success', // 找到自己需要的图标 | ||||
message: '注册成功', | message: '注册成功', | ||||
duration:"2000", | duration:"2000", | ||||
onClose:function(){ | onClose:function(){ | ||||
this.$router.push({path: '/login'}) | |||||
that.$router.push({path: '/login'}) | |||||
} | } | ||||
}) | }) | ||||
}); | }); | ||||
@@ -131,13 +131,14 @@ export default { | |||||
} | } | ||||
this.form.accountType = '2'; | this.form.accountType = '2'; | ||||
console.log(this.form); | console.log(this.form); | ||||
var that = this | |||||
userRegister(this.form).then((res) => { | userRegister(this.form).then((res) => { | ||||
this.$toast({ | this.$toast({ | ||||
icon: 'success', // 找到自己需要的图标 | icon: 'success', // 找到自己需要的图标 | ||||
message: '注册成功', | message: '注册成功', | ||||
duration:"2000", | duration:"2000", | ||||
onClose:function(){ | onClose:function(){ | ||||
this.$router.push({path: '/login'}) | |||||
that.$router.push({path: '/login'}) | |||||
} | } | ||||
}) | }) | ||||
}); | }); | ||||