fix: add json needSerialize

This commit is contained in:
2025-03-06 22:45:11 +08:00
parent 5911f29c8f
commit e8f7f61e09
3 changed files with 10 additions and 22 deletions

View File

@@ -27,7 +27,7 @@ export class App<T = {}, U = AppReqRes> {
const router = opts?.router || new QueryRouter();
const server = opts?.server || new Server(opts?.serverOptions || {});
server.setHandle(router.getHandle(router, opts?.routerHandle, opts?.routerContext));
router.setContext(opts?.routerContext);
router.setContext({ needSerialize: true, ...opts?.routerContext });
this.router = router;
this.server = server;
if (opts?.io) {