提交 d0a345bd authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 e5cedaec
......@@ -77,6 +77,13 @@ export default {
this.$refs.countdown.stop()
error.response && this.$toast(error.response.data.message)
})
},
// 重置表单
resetFields() {
this.ruleForm.account = ''
this.ruleForm.password = ''
this.$refs.countdown.stop()
this.$refs.form.resetValidation()
}
}
}
......
......@@ -118,11 +118,15 @@ export default {
confirmButtonText: '切换绑定',
cancelButtonText: '绑定其他手机号',
message: '此手机号码已绑定其他微信,是否切换绑定该微信?'
}).then(() => {
this.bindWechat(data, 1).then(() => {
this.$toast('已绑定成功!')
})
})
.then(() => {
this.bindWechat(data, 1).then(() => {
this.$toast('已绑定成功!')
})
})
.catch(() => {
this.$refs.form.resetFields()
})
},
// 登录成功
loginSuccess(response, delta = 2) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论