Commit 1d8676f4 by Netfan

chore: remove sleep in department list api

1 parent 0c3dd925
import { faker } from '@faker-js/faker'; import { faker } from '@faker-js/faker';
import { verifyAccessToken } from '~/utils/jwt-utils'; import { verifyAccessToken } from '~/utils/jwt-utils';
import { import { unAuthorizedResponse, useResponseSuccess } from '~/utils/response';
sleep,
unAuthorizedResponse,
useResponseSuccess,
} from '~/utils/response';
const formatterCN = new Intl.DateTimeFormat('zh-CN', { const formatterCN = new Intl.DateTimeFormat('zh-CN', {
timeZone: 'Asia/Shanghai', timeZone: 'Asia/Shanghai',
...@@ -59,8 +55,6 @@ export default eventHandler(async (event) => { ...@@ -59,8 +55,6 @@ export default eventHandler(async (event) => {
return unAuthorizedResponse(event); return unAuthorizedResponse(event);
} }
await sleep(600);
const listData = structuredClone(mockData); const listData = structuredClone(mockData);
return useResponseSuccess(listData); return useResponseSuccess(listData);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!