From 74cd1a9a3c8dccfc27c2a2ba7e65a9934ea96d3a Mon Sep 17 00:00:00 2001 From: LP-home <1570800510@qq.com> Date: Sat, 31 Dec 2022 11:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8openapi=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=94=99=E8=AF=AF=EF=BC=8CaddMiddlewares?= =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/plugin-openapi/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-openapi/src/index.ts b/packages/plugin-openapi/src/index.ts index 774da33c..64bd22ee 100644 --- a/packages/plugin-openapi/src/index.ts +++ b/packages/plugin-openapi/src/index.ts @@ -40,7 +40,7 @@ export default (api: IApi) => { } // 增加中间件 - api.addMiddewares(() => { + api.addMiddlewares(() => { return serveStatic(openAPIFilesPath); }); @@ -66,7 +66,7 @@ const App = () => { dom_id: '#swagger-ui', }); }, [value]); - + return (