mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: problemconfig: bug fix
This commit is contained in:
3 files changed
+8
-3
No files matched your search
@@ -104,7 +104,12 @@ const page = new NamedPage('problem_config', () => {
|
||||
if (!state.config.__loaded) return;
|
||||
if (state.config.cases) {
|
||||
const score = state.config.score * state.config.cases.length;
|
||||
state.config.subtasks = [{ type: 'sum' as SubtaskType, score: score && score < 100 ? score : 100, cases: state.config.cases }];
|
||||
state.config.subtasks = [{
|
||||
type: 'sum' as SubtaskType,
|
||||
score: score && score < 100 ? score : 100,
|
||||
cases: state.config.cases,
|
||||
id: 1,
|
||||
}];
|
||||
delete state.config.cases;
|
||||
delete state.config.score;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user