Skip to content

Commit 9ce0df8

Browse files
authored
fix: 修复mock里面eventHandler重复导致无法启动 (#6631)
1 parent 3cf0c0e commit 9ce0df8

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { eventHandler } from 'h3';
12
import { verifyAccessToken } from '~/utils/jwt-utils';
23
import {
34
sleep,
@@ -13,6 +14,3 @@ export default eventHandler(async (event) => {
1314
await sleep(600);
1415
return useResponseSuccess(null);
1516
});
16-
function eventHandler(_: (event: any) => Promise<any>) {
17-
throw new Error('Function not implemented.');
18-
}

0 commit comments

Comments
 (0)