|
@@ -55,7 +55,7 @@ Page({
|
|
|
const res = await app.$api('user', 'POST', params);
|
|
|
if (res.errcode === 0) {
|
|
|
wx.showToast({ title: `账号注册成功`, icon: 'success', duration: 2000 }) //登录成功提示
|
|
|
- that.setData({ current: 1 })
|
|
|
+ that.setData({ current: 1, form: {} })
|
|
|
} else wx.showToast({ title: res.errmsg, icon: 'none', duration: 2000 })
|
|
|
}
|
|
|
}
|