fix:解决ts报错
This commit is contained in:
parent
0f12608ef5
commit
78458c7e6a
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user