From 9ce0df88aee357a92d70efc41643ecf4bb52e4e7 Mon Sep 17 00:00:00 2001 From: gxc685 <72901990+gxc685@users.noreply.github.com> Date: Thu, 14 Aug 2025 22:00:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmock=E9=87=8C=E9=9D=A2?= =?UTF-8?q?eventHandler=E9=87=8D=E5=A4=8D=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=90=AF=E5=8A=A8=20(#6631)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/backend-mock/api/system/dept/.post.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/backend-mock/api/system/dept/.post.ts b/apps/backend-mock/api/system/dept/.post.ts index 62ab8c585..9a4896afa 100644 --- a/apps/backend-mock/api/system/dept/.post.ts +++ b/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) { - throw new Error('Function not implemented.'); -}