fix(auth): 长任务活跃期间续期会话
This commit is contained in:
@@ -298,6 +298,7 @@ function requiredPermission(path: string, explicit?: unknown) {
|
||||
// 全局守卫:登录校验 + 会话超时
|
||||
router.beforeEach((to, _from, next) => {
|
||||
const auth = useAuthStore()
|
||||
auth.syncSession()
|
||||
document.title = to.meta.title ? `${to.meta.title} - 远光软件微调平台` : '远光软件微调平台'
|
||||
|
||||
if (to.meta.public) {
|
||||
|
||||
Reference in New Issue
Block a user