return an object when fetch failed

This commit is contained in:
Pig Fang 2020-03-11 22:24:20 +08:00
parent 59f8f33df7
commit 4ce25a918c

View File

@ -94,6 +94,8 @@ export async function walkFetch(request: Request): Promise<any> {
type: 'danger', type: 'danger',
okButtonType: 'outline-light', okButtonType: 'outline-light',
}) })
return { code: -1, message: trans('general.fatalError') }
} }
} }