瀏覽代碼

bug修复

lucw 8 月之前
父節點
當前提交
5d126bc17d
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/technology/production/components/user-setting-matter-add.vue

+ 4 - 2
src/views/technology/production/components/user-setting-matter-add.vue

@@ -338,8 +338,10 @@
       // 关闭清空formData
       handleClose() {
         this.formData = JSON.parse(JSON.stringify(this.formBaseData));
-        this.$refs.formRef?.clearValidate();
-        this.visible = false;
+        this.$nextTick(() => {
+          this.$refs.formRef.clearValidate();
+          this.visible = false;
+        });
       },
       // 去选择记录规则
       selectReleaseId() {