描述:添加重置输入框

This commit is contained in:
SelfRidicule 2024-04-15 11:29:56 +08:00
parent 2c2b30b344
commit 2da8777e03
2 changed files with 2 additions and 1 deletions

View File

@ -384,6 +384,7 @@ export default {
}, },
add() { add() {
this.form.resetFields() this.form.resetFields()
this.mdl = {}
this.edit({ id: 0 }) this.edit({ id: 0 })
}, },
edit(record) { edit(record) {

View File

@ -515,7 +515,7 @@ export default {
}, },
add() { add() {
this.form.resetFields() this.form.resetFields()
this.mdl.indoorPicUrl = null this.mdl = {}
this.edit({ id: 0 }) this.edit({ id: 0 })
}, },
edit(record) { edit(record) {