FEAT => 本次更新项目为:contentLibraries

This commit is contained in:
超级老白兔
2025-08-28 16:26:14 +08:00
parent f7b28d876d
commit 0a6f892ba8
4 changed files with 7 additions and 1 deletions

View File

@@ -54,4 +54,6 @@ export const defFormData: FormData = {
deveiceGroupsOptions: [],
wechatGroups: [],
wechatGroupsOptions: [],
contentGroups: [],
contentGroupsOptions: [],
};

View File

@@ -71,6 +71,8 @@ export default function NewPlan() {
deveiceGroupsOptions: detail.deveiceGroupsOptions ?? [],
wechatGroups: detail.wechatGroups ?? [],
wechatGroupsOptions: detail.wechatGroupsOptions ?? [],
contentGroups: detail.contentGroups ?? [],
contentGroupsOptions: detail.contentGroupsOptions ?? [],
status: detail.status ?? 0,
messagePlans: detail.messagePlans ?? [],
}));

View File

@@ -58,6 +58,8 @@ export interface MessageContentItem {
groupIds?: string[]; // 改为数组以支持GroupSelection组件
groupOptions?: any[]; // 添加群选项数组
linkUrl?: string;
coverImage?: string;
[key: string]: any;
}
export interface MessageContentGroup {

View File

@@ -135,7 +135,7 @@ const NewMomentsSync: React.FC = () => {
const params = {
name: formData.taskName,
deveiceGroups: formData.deveiceGroups,
contentLibraries: formData.contentGroups.map((lib: any) => lib.id),
contentGroups: formData.contentGroups.map((lib: any) => lib.id),
syncInterval: formData.syncInterval,
syncCount: formData.syncCount,
syncType: formData.syncType, // 账号类型真实传参