diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue index 3ced6ca..34b9493 100644 --- a/frontend/src/views/Dashboard.vue +++ b/frontend/src/views/Dashboard.vue @@ -41,7 +41,10 @@ function go(path: string): void { } function open(row: TaskListItem): void { - router.push(row.type === 'factor' ? `/factor/result/${row.task_id}` : `/backtest/result/${row.task_id}`) + const path = row.type === 'factor' ? `/factor/result/${row.task_id}` + : row.type === 'optimize' ? `/backtest/optimize-result/${row.task_id}` + : `/backtest/result/${row.task_id}` + router.push(path) } const typeLabelMap: Record = { cta: '回测', optimize: '优化', factor: '因子' } diff --git a/frontend/src/views/backtest/History.vue b/frontend/src/views/backtest/History.vue index 19de1fa..c5a4c09 100644 --- a/frontend/src/views/backtest/History.vue +++ b/frontend/src/views/backtest/History.vue @@ -76,6 +76,7 @@ async function load(): Promise { function open(row: TaskListItem): void { if (row.type === 'factor') router.push(`/factor/result/${row.task_id}`) + else if (row.type === 'optimize') router.push(`/backtest/optimize-result/${row.task_id}`) else router.push(`/backtest/result/${row.task_id}`) }