Przeglądaj źródła

feat: 提示退出登录返回首页

sunxiao 2 miesięcy temu
rodzic
commit
9915bde0cc
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/utils/request.js

+ 1 - 1
src/utils/request.js

@@ -93,7 +93,7 @@ service.interceptors.response.use(res => {
           }
           isRelogin.show = false;
           useUserStore().logOut().then(() => {
-            location.href = '/index';
+            location.href = '/login';
           })
       }).catch(() => {
         isRelogin.show = false;