fix: 修复mock里面eventHandler重复导致无法启动 (#6631)
parent
3cf0c0eb04
commit
9ce0df88ae
|
@ -1,3 +1,4 @@
|
||||||
|
import { eventHandler } from 'h3';
|
||||||
import { verifyAccessToken } from '~/utils/jwt-utils';
|
import { verifyAccessToken } from '~/utils/jwt-utils';
|
||||||
import {
|
import {
|
||||||
sleep,
|
sleep,
|
||||||
|
@ -13,6 +14,3 @@ export default eventHandler(async (event) => {
|
||||||
await sleep(600);
|
await sleep(600);
|
||||||
return useResponseSuccess(null);
|
return useResponseSuccess(null);
|
||||||
});
|
});
|
||||||
function eventHandler(_: (event: any) => Promise<any>) {
|
|
||||||
throw new Error('Function not implemented.');
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue