fix(auth): 长任务活跃期间续期会话

This commit is contained in:
caoxiaozhu
2026-07-25 18:15:49 +08:00
parent 4f8aff5fc4
commit ea0013b99c
5 changed files with 70 additions and 9 deletions

View File

@@ -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) {