瀏覽代碼

Merge branch 'feature_first_pages' of Web/contentCooper into master

jihuaqiang 6 天之前
父節點
當前提交
286418c375
共有 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