提交 d27633fb 作者: 无木

fix: fixed build warning for style of `intro.js`

修复intro.js的样式文件造成的build警告

fixed: #1130
上级 30fa4cfa
......@@ -29,14 +29,24 @@ export function createPermissionGuard(router: Router) {
return;
}
const token = userStore.getToken;
// Whitelist can be directly entered
if (whitePathList.includes(to.path as PageEnum)) {
if (to.path === LOGIN_PATH && token) {
const isSessionTimeout = userStore.getSessionTimeout;
try {
await userStore.afterLoginAction();
if (!isSessionTimeout) {
next((to.query?.redirect as string) || '/');
return;
}
} catch {}
}
next();
return;
}
const token = userStore.getToken;
// token does not exist
if (!token) {
// You can access without permission. You need to set the routing meta.ignoreAuth to true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论