mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix auto subtask (#557)
This commit is contained in:
1 parent
45f819512d
commit
41a20bddbe
1 file changed
+1
-1
@@ -113,7 +113,7 @@ const page = new NamedPage('problem_config', () => {
|
|||||||
delete state.config.cases;
|
delete state.config.cases;
|
||||||
delete state.config.score;
|
delete state.config.score;
|
||||||
}
|
}
|
||||||
if (state.config.subtasks) return;
|
if (state.config.subtasks?.length) return;
|
||||||
const testdata = (state.testdata || []).map((i) => i.name);
|
const testdata = (state.testdata || []).map((i) => i.name);
|
||||||
unsubscribe();
|
unsubscribe();
|
||||||
const subtasks = readSubtasksFromFiles(testdata, state.config);
|
const subtasks = readSubtasksFromFiles(testdata, state.config);
|
||||||
|
|||||||
Reference in new issue
Block a user