Browse Source

服务号支持手动选取

jihuaqiang 2 tuần trước cách đây
mục cha
commit
6dd222ca7f

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

@@ -42,7 +42,7 @@ const EditTitleCoverModal: React.FC<EditTitleCoverModalProps> = ({ visible, onCa
 	useEffect(() => {
 		if (video && visible) {
 			// Reset form based on incoming video data
-			const hasCustomTitle = !isNil(video.customTitle) || video.customTitle === '';
+			const hasCustomTitle = video.customTitle && video.customTitle !== '';
 			const isCustomCover = video.customCoverType === 1 || video.customCoverType === 2;
 			const isScreenshotCover = video.customCoverType === 1;
 

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

@@ -77,8 +77,8 @@ const AddPunlishPlanModal: React.FC<AddPunlishPlanModalProps> = ({
 				const formData = { ...values };
 				if (formData.type === GzhPlanType.自动回复) { 
 					formData.scene = 0;
-					formData.videoList = selectedVideos;
 				}
+				formData.videoList = selectedVideos;
 				formData.type = +formData.type;
 				onOk(formData);
 			})