fix(strategy): 编辑器代码空白根因=/strategy/files不含code; 加GET /strategy/file/{name}按需拉取; 运行回测改回跳参数页+按策略预填(New.vue读query.class,推翻上轮直接发起) [nas]

This commit is contained in:
2026-08-13 19:40:18 +08:00
parent b9d9285246
commit 82c9edb092
4 changed files with 49 additions and 71 deletions
+4
View File
@@ -106,6 +106,10 @@ onMounted(async () => {
/* 预填失败,走默认 */
}
}
// 从代码编辑页「运行回测」跳转:按策略类名预填
if (!form.strategy && route.query.class) {
form.strategy = String(route.query.class)
}
if (!form.strategy && strategies.value.length) {
form.strategy = strategies.value[0].name
}