feat:缓存下

This commit is contained in:
许永平
2025-07-09 18:08:17 +08:00
parent 37dabcfdf6
commit c6107f56af
6 changed files with 397 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ export async function fetchAutoLikeTasks(): Promise<LikeTask[]> {
// 获取单个任务详情
export async function fetchAutoLikeTaskDetail(id: string): Promise<LikeTask | null> {
try {
const res = await get<ApiResponse<LikeTask>>(`/v1/workbench/detail/${id}`);
const res = await get<ApiResponse<LikeTask>>(`/v1/workbench/detail?id=${id}`);
if (res.code === 200 && res.data) {
return res.data;
}

View File

@@ -26,7 +26,7 @@ export async function fetchMomentsSyncTasks(): Promise<MomentsSyncTask[]> {
// 获取单个任务详情
export async function fetchMomentsSyncTaskDetail(id: string): Promise<MomentsSyncTask | null> {
try {
const res = await get<ApiResponse<MomentsSyncTask>>(`/v1/workbench/detail/${id}`);
const res = await get<ApiResponse<MomentsSyncTask>>(`/v1/workbench/detail?id=${id}`);
if (res.code === 200 && res.data) {
return res.data;
}