Browse Source

chore: remove sleep in department list api

pull/5613/head
Netfan 12 months ago
parent
commit
1d8676f456
  1. 8
      apps/backend-mock/api/system/dept/list.ts

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

@ -1,10 +1,6 @@
import { faker } from '@faker-js/faker';
import { verifyAccessToken } from '~/utils/jwt-utils';
import {
sleep,
unAuthorizedResponse,
useResponseSuccess,
} from '~/utils/response';
import { unAuthorizedResponse, useResponseSuccess } from '~/utils/response';
const formatterCN = new Intl.DateTimeFormat('zh-CN', {
timeZone: 'Asia/Shanghai',
@ -59,8 +55,6 @@ export default eventHandler(async (event) => {
return unAuthorizedResponse(event);
}
await sleep(600);
const listData = structuredClone(mockData);
return useResponseSuccess(listData);

Loading…
Cancel
Save