Преглед на файлове

fix: 修复mock里面eventHandler重复导致无法启动 (#6631)

gxc685 преди 1 месец
родител
ревизия
9ce0df88ae
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      apps/backend-mock/api/system/dept/.post.ts

+ 1 - 3
apps/backend-mock/api/system/dept/.post.ts

@@ -1,3 +1,4 @@
+import { eventHandler } from 'h3';
 import { verifyAccessToken } from '~/utils/jwt-utils';
 import {
   sleep,
@@ -13,6 +14,3 @@ export default eventHandler(async (event) => {
   await sleep(600);
   return useResponseSuccess(null);
 });
-function eventHandler(_: (event: any) => Promise<any>) {
-  throw new Error('Function not implemented.');
-}