fix:解决ts报错
This commit is contained in:
parent
0f12608ef5
commit
78458c7e6a
@ -1,7 +1,7 @@
|
|||||||
let f = async (ctx, next) => {
|
let f = async (ctx, next) => {
|
||||||
try {
|
try {
|
||||||
await next();
|
await next();
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
if (error.status != undefined) {
|
if (error.status != undefined) {
|
||||||
ctx.status = error.status;
|
ctx.status = error.status;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user