Skip to content

Commit

Permalink
修复 确定按键禁用
Browse files Browse the repository at this point in the history
  • Loading branch information
z1hui committed Aug 25, 2022
1 parent e2aa9a3 commit 852c522
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default {
this.canSubmit = false
this.$refs.dataForm.validate(valid => {
if (!valid) {
this.canSubmit = true
return
}
if (!this.dataForm.imgUrl) {
Expand All @@ -159,6 +160,7 @@ export default {
type: 'warning',
duration: 1500
})
this.canSubmit = true
return
}
// if (this.relatedSpu === 1 && !this.datatForm.spuId) {
Expand Down Expand Up @@ -187,6 +189,8 @@ export default {
this.$refs['dataForm'].resetFields()
}
})
}).finally(() => {
this.canSubmit = true
})
})
}
Expand Down

0 comments on commit 852c522

Please sign in to comment.