winkey 2 месяцев назад
Родитель
Сommit
0f3c0b4132
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/utils/request/req.ts

+ 1 - 1
src/utils/request/req.ts

@@ -90,7 +90,7 @@ service.interceptors.response.use(
       // 退出登录
       message.error('无效的会话,或者会话已过期,请重新登录。')
       useUserStore().logout().then(() => {
-        location.href = '/login';
+          location.href = '#/login';
       });
     } else if (code === HttpStatus.SERVER_ERROR) {
       // console.log(msg);