lucw 7 ماه پیش
والد
کامیت
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() {