Commit 2e11b750 authored by peco's avatar peco

feat: 修改密码增加校验

parent 8657f297
...@@ -63,6 +63,10 @@ ...@@ -63,6 +63,10 @@
methods: { methods: {
// 登录 // 登录
submit() { submit() {
if (this.params.password1 != this.params.password2) {
this.$u.toast('两次输入密码不一致')
return
}
this.$refs.uForm.validate(async valid => { this.$refs.uForm.validate(async valid => {
if (valid) { if (valid) {
let res = await this.$u.api.changePassword(this.params) let res = await this.$u.api.changePassword(this.params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment