fix: fixed bug for register error with parse args

This commit is contained in:
RockYang
2023-09-26 09:30:18 +08:00
parent 48393e0e83
commit db0a79da93
6 changed files with 20 additions and 10 deletions

View File

@@ -143,6 +143,7 @@ const register = function () {
if (enableMsg.value && formData.value.code === '') {
return ElMessage.error('请输入短信验证码');
}
formData.value.code = parseInt(formData.value.code)
httpPost('/api/user/register', formData.value).then(() => {
ElMessage.success({"message": "注册成功,即将跳转到登录页...", onClose: () => router.push("/login")})
}).catch((e) => {