jihuaqiang 6 روز پیش
والد
کامیت
4c84019a5e
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      src/views/publishContent/weGZH/components/publishPlanModal/index.tsx

+ 4 - 1
src/views/publishContent/weGZH/components/publishPlanModal/index.tsx

@@ -31,8 +31,11 @@ const AddPunlishPlanModal: React.FC<AddPunlishPlanModalProps> = ({ visible, isSu
 		if (actionType === 'edit') {
 			form.setFieldsValue(editPlanData);
 			setSelectedVideos(editPlanData?.videoList || []);
+		} else {
+			setSelectedVideos([]);
+			form.resetFields();
 		}
-	}, [actionType, editPlanData]);
+	}, [actionType, editPlanData, visible]);
 
 	const handleOk = () => {
 		form