handle http 400 properly

This commit is contained in:
Pig Fang 2020-04-06 10:53:51 +08:00
parent 2039a0a554
commit 04703cc7e5

View File

@ -66,7 +66,7 @@ export async function walkFetch(request: Request): Promise<any> {
text: t('general.csrf'),
})
return
} else if (response.status === 403) {
} else if (response.status === 403 || response.status === 400) {
showModal({
mode: 'alert',
text: message,