@@ -7,6 +7,7 @@
width="1200"
append-to-body
destroy-on-close
+ :before-close="handleClose"
>
<el-form
:model="form"
@@ -374,4 +375,10 @@ function uploadChange(file) {
function uploadRemove() {
materialForm.value.fileList = [];
}
+
+// 关闭时重置状态
+const handleClose = (done) => {
+ emits("close", false)
+ done()
+}
</script>