Explorar o código

质检方案新增后,再新增bug

wsx hai 10 meses
pai
achega
998d7e8b48
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/inspectionTemplate/AddorUpdate.vue

+ 2 - 1
src/views/inspectionTemplate/AddorUpdate.vue

@@ -507,7 +507,8 @@
             saveOrUpdate(this.dataForm)
               .then((msg) => {
                 this.loading = false;
-                this.dataForm = {};
+                this.$refs['dataForm'].resetFields();
+                // this.dataForm = {};
                 const info = this.dataForm.id ? '修改成功' : '新增成功';
                 this.$message.success(info);
                 this.visible = false;