diff --git a/src/api/mock.ts b/src/api/mock.ts index c649092..4c27263 100644 --- a/src/api/mock.ts +++ b/src/api/mock.ts @@ -4,15 +4,27 @@ * @Date: 2024/6/19 */ -import {MOCK_JOB, MOCK_TOOL} from "@/constant"; +import { MOCK_JOB, MOCK_TOOL } from "@/constant"; -export const fetchJob = (task: string) => +export const fetchSimpleJob = (task: string) => new Promise<{ data: any }>((resolve, _reject) => { MOCK_JOB.data.task = task; setTimeout( () => resolve({ - data: MOCK_JOB + data: MOCK_JOB, + }), + 1000, + ); + }); + +export const fetchLevelJob = (task: string) => + new Promise<{ data: any }>((resolve, _reject) => { + MOCK_JOB.data.task = task; + setTimeout( + () => + resolve({ + data: MOCK_JOB, }), 1000, );