fix(strategy): 编辑器代码空白根因=/strategy/files不含code; 加GET /strategy/file/{name}按需拉取; 运行回测改回跳参数页+按策略预填(New.vue读query.class,推翻上轮直接发起) [nas]
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user