FEAT => 本次更新项目为:contentLibraries
This commit is contained in:
@@ -54,4 +54,6 @@ export const defFormData: FormData = {
|
||||
deveiceGroupsOptions: [],
|
||||
wechatGroups: [],
|
||||
wechatGroupsOptions: [],
|
||||
contentGroups: [],
|
||||
contentGroupsOptions: [],
|
||||
};
|
||||
|
||||
@@ -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 ?? [],
|
||||
}));
|
||||
|
||||
@@ -58,6 +58,8 @@ export interface MessageContentItem {
|
||||
groupIds?: string[]; // 改为数组以支持GroupSelection组件
|
||||
groupOptions?: any[]; // 添加群选项数组
|
||||
linkUrl?: string;
|
||||
coverImage?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface MessageContentGroup {
|
||||
|
||||
@@ -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, // 账号类型真实传参
|
||||
|
||||
Reference in New Issue
Block a user