fix:解决ts报错

This commit is contained in:
fanxb 2021-10-24 19:09:27 +08:00
parent 0f12608ef5
commit 78458c7e6a

View File

@ -1,7 +1,7 @@
let f = async (ctx, next) => {
try {
await next();
} catch (error) {
} catch (error: any) {
if (error.status != undefined) {
ctx.status = error.status;
} else {