diff --git a/src/serverCom.ts b/src/serverCom.ts index 45afab9..5249bf1 100644 --- a/src/serverCom.ts +++ b/src/serverCom.ts @@ -62,7 +62,9 @@ http.interceptors.response.use( .then(() => { return http(originalRequest); }) - .catch(() => {}); + .catch(() => { + router.push({ name: "login" }); + }); } const notificationStore = useNotificationStore();