Commit 8aebd7ed by hanxuehong

fix: 重置方法的修改

parent e4a62d3a
...@@ -204,9 +204,17 @@ export default { ...@@ -204,9 +204,17 @@ export default {
}, },
resetForm() { resetForm() {
for (const key in this.editForm) { for (const key in this.editForm) {
if (key === 'enable') continue if (key === 'forcedUpdate') {
this.editForm[key] = 0
continue
}
if (key === 'businessType') {
this.editForm[key] = 'production_assistant'
continue
}
this.editForm[key] = '' this.editForm[key] = ''
} }
this.fileList = []
}, },
clone() { clone() {
this.resetForm() this.resetForm()
......
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