refactor: remove dead code (pollTaskStatus, routeLoadingTimer)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-12 21:43:15 +08:00
parent 3f8e34c07f
commit 3a49780d8d
2 changed files with 1 additions and 16 deletions
-10
View File
@@ -83,14 +83,4 @@ router.beforeEach((to, from, next) => {
}
})
// Track route loading state for page transitions
let routeLoadingTimer: ReturnType<typeof setTimeout> | null = null
router.afterEach(() => {
if (routeLoadingTimer) clearTimeout(routeLoadingTimer)
routeLoadingTimer = setTimeout(() => {
routeLoadingTimer = null
}, 300)
})
export default router
+1 -6
View File
@@ -121,10 +121,5 @@ export const useProcessingStore = defineStore('processing', () => {
return taskId
}
async function pollTaskStatus(taskId: string) {
const res = await api.get(`/processing/status/${taskId}`)
return res.data
}
return { currentTask, tasks, logs, taskSource, connectWebSocket, disconnectWebSocket, startTask, pollTaskStatus }
return { currentTask, tasks, logs, taskSource, connectWebSocket, disconnectWebSocket, startTask }
})