feat: 单点登录

This commit is contained in:
GAOANG
2024-05-24 16:39:37 +08:00
parent 631995de04
commit f77f3c9ec5
4 changed files with 34 additions and 4 deletions

View File

@ -33,7 +33,7 @@ export function createPermissionGuard(router: Router) {
// Whitelist can be directly entered
if (whitePathList.includes(to.path as PageEnum)) {
if (to.path === LOGIN_PATH && token) {
if (to.path === LOGIN_PATH && token && !to.query?.ltpasToken) {
const isSessionTimeout = userStore.getSessionTimeout;
try {
await userStore.afterLoginAction();