私域操盘手 - 修复设备配置参数错误的问题

This commit is contained in:
柳清爽
2025-05-06 15:57:22 +08:00
parent 3ff8b5a95c
commit c05e77462e
3 changed files with 199 additions and 16 deletions

View File

@@ -45,8 +45,8 @@ export const fetchDeviceHandleLogs = async (id: string | number, page: number =
// 更新设备任务配置
export const updateDeviceTaskConfig = async (
id: string | number,
config: {
deviceId: string | number;
autoAddFriend?: boolean;
autoReply?: boolean;
momentsSync?: boolean;
@@ -54,7 +54,6 @@ export const updateDeviceTaskConfig = async (
}
): Promise<ApiResponse<any>> => {
return api.post<ApiResponse<any>>(`/v1/devices/task-config`, {
id,
...config
});
};