20251205任务数据分配分页

This commit is contained in:
wxlong
2025-12-05 10:46:19 +08:00
parent 53900e6208
commit 7140e63b3f
13 changed files with 499 additions and 172 deletions

View File

@@ -150,6 +150,12 @@ const router = new VueRouter({
routes
})
router.beforeEach(async (to, from, next) => {
// 如果目标路径与当前路径相同,直接放行,避免 NavigationDuplicated 错误
if (to.path === from.path) {
next()
return
}
if (to.path.startsWith('/login')) {
window.sessionStorage.removeItem('access-user')
window.sessionStorage.removeItem('access-id')