diff --git a/src/http/axios.ts b/src/http/axios.ts index d04881a..daa7c62 100644 --- a/src/http/axios.ts +++ b/src/http/axios.ts @@ -39,7 +39,7 @@ const errorInterceptor = (error: AxiosError) => { message: error.response!.data.msg ? error.response!.data.msg : error.message, showClose: true }) - if (error.response!.status === 401) { + if (error.response!.status === 403) { clearLoginState() router.push({ name: 'login'