diff --git a/src/boot/axios.ts b/src/boot/axios.ts index 250928ca..0813e004 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -57,7 +57,9 @@ api.interceptors.response.use( persistent: true, enablei18n: true, message: `dialog.backend.${parseError(err.response.status, err.response.data)}`, - action: () => {}, + action: () => { + if (err.response.status === 401) window.location.reload(); + }, }); }, );