diff --git a/src/admin/problem/detail.vue b/src/admin/problem/detail.vue index c8b1208..568e016 100644 --- a/src/admin/problem/detail.vue +++ b/src/admin/problem/detail.vue @@ -79,16 +79,10 @@ const problem = useLocalStorage(STORAGE_KEY.ADMIN_PROBLEM, { ], test_case_id: "", test_case_score: [] as Testcase[], - rule_type: "ACM", hint: "", source: "", prompt: "", answers: [] as { language: LANGUAGE; code: string }[], - io_mode: { - io_mode: "Standard IO", - input: "input.txt", - output: "output.txt", - }, contest_id: "", allow_flowchart: false, mermaid_code: "", @@ -240,7 +234,6 @@ async function getProblemDetail() { problem.value.samples = data.samples problem.value.test_case_id = data.test_case_id problem.value.test_case_score = data.test_case_score - problem.value.rule_type = data.rule_type problem.value.hint = data.hint problem.value.source = data.source problem.value.prompt = data.prompt @@ -260,7 +253,6 @@ async function getProblemDetail() { code: "", })) } - problem.value.io_mode = data.io_mode if (problem.value.contest_id) { problem.value.contest_id = problem.value.contest_id } diff --git a/src/utils/types.ts b/src/utils/types.ts index b6d8598..d918638 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -145,17 +145,10 @@ export interface Problem { last_update_time: null time_limit: number memory_limit: number - io_mode: { - input: string - output: string - io_mode: string - } - rule_type: string difficulty: "Low" | "Mid" | "High" source: string prompt: string answers: { language: LANGUAGE; code: string }[] - total_score: number submission_number: number accepted_number: number statistic_info: { [key: string]: number } @@ -207,7 +200,6 @@ type ExcludeKeys = | "statistic_info" | "accepted_number" | "submission_number" - | "total_score" export type BlankProblem = Omit & AlterProblem & { id?: number }