Skip to content

Commit 1d8676f

Browse files
committed
chore: remove sleep in department list api
1 parent 0c3dd92 commit 1d8676f

File tree

1 file changed

+1
-7
lines changed
  • apps/backend-mock/api/system/dept

1 file changed

+1
-7
lines changed

apps/backend-mock/api/system/dept/list.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { faker } from '@faker-js/faker';
22
import { verifyAccessToken } from '~/utils/jwt-utils';
3-
import {
4-
sleep,
5-
unAuthorizedResponse,
6-
useResponseSuccess,
7-
} from '~/utils/response';
3+
import { unAuthorizedResponse, useResponseSuccess } from '~/utils/response';
84

95
const formatterCN = new Intl.DateTimeFormat('zh-CN', {
106
timeZone: 'Asia/Shanghai',
@@ -59,8 +55,6 @@ export default eventHandler(async (event) => {
5955
return unAuthorizedResponse(event);
6056
}
6157

62-
await sleep(600);
63-
6458
const listData = structuredClone(mockData);
6559

6660
return useResponseSuccess(listData);

0 commit comments

Comments
 (0)