From b5edd6faf53737a35ce5e5ce350dc27c7508e3f7 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 25 Aug 2026 13:43:45 -0600 Subject: [PATCH] =?UTF-8?q?fix(=E6=AF=94=E8=B5=9B):=20=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E3=80=8C=E5=AE=A1=E6=A0=B8=E3=80=8D=E6=8C=89=E9=92=AE=E4=BB=8E?= =?UTF-8?q?=E6=9D=A5=E4=B8=8D=E6=98=BE=E7=A4=BA=EF=BC=8C=E8=80=81=E5=B8=88?= =?UTF-8?q?=E8=BF=9B=E4=B8=8D=E5=8E=BB=20ACM=20=E5=AE=A1=E6=A0=B8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 判的是 `props.contest.rule_type === "ACM"`,而 rule_type 是阶段 0 砍掉 OI 模式时删掉的字段 —— 后端和契约里都不存在,`undefined === "ACM"` 恒为 false。路由、页面、接口都在(实测 acm-helper 返回 200),只有这个 入口按钮被自己判没了。 比赛只有 ACM 模式,条件直接去掉。 这条本来就在 vue-tsc 的既有错误里(TS2339: Property 'rule_type' does not exist),只是之前没人跑,所以没人看见。 Co-Authored-By: Claude Opus 5 --- apps/web/src/admin/contest/components/Actions.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/apps/web/src/admin/contest/components/Actions.vue b/apps/web/src/admin/contest/components/Actions.vue index 5f1a141..a936414 100644 --- a/apps/web/src/admin/contest/components/Actions.vue +++ b/apps/web/src/admin/contest/components/Actions.vue @@ -42,21 +42,13 @@ async function clone() { message.error("复制失败") } } - -const isACM = computed(() => props.contest.rule_type === "ACM")