From 48738f74d94c426369ea109d5ed24586fe2e2839 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 13 Oct 2026 13:46:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A2=98=E7=9B=AE=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E8=80=81=E5=B8=88=E8=B4=A6=E5=8F=B7=E7=9C=8B=E9=A2=98=E7=9B=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B9=9F=E6=9C=89=E3=80=8C=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E3=80=8D=E5=88=97=E4=BA=86=EF=BC=8C=E8=87=AA=E5=B7=B1=E5=81=9A?= =?UTF-8?q?=E5=AF=B9=E7=9A=84=E9=A2=98=E6=89=93=E5=8B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- apps/web/src/oj/problem/list.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web/src/oj/problem/list.vue b/apps/web/src/oj/problem/list.vue index 9e99b40..a04618d 100644 --- a/apps/web/src/oj/problem/list.vue +++ b/apps/web/src/oj/problem/list.vue @@ -78,10 +78,13 @@ const tags = ref([]) const allCount = ref(0) const progress = ref(null) -/** 老师看的是题库,没有状态列、没有个人进度(定稿「老师」那块) */ +/** + * 老师看的是题库,没有个人进度(定稿「老师」那块)。状态列(做对打勾、做过没对一道杠) + * 老师也有:2026-10-13 用户要的,自己做过哪些题也想一眼看到 + */ const teacher = computed(() => userStore.isTeacherOrAbove) -const showStatus = computed(() => userStore.isAuthed && !teacher.value) -const mine = computed(() => (showStatus.value ? progress.value : null)) +const showStatus = computed(() => userStore.isAuthed) +const mine = computed(() => (showStatus.value && !teacher.value ? progress.value : null)) // 老师那一版没有这个开关:没有状态列,开了也看不出藏了哪些题。带着 ?undone=1 进来也当没开 const undoneOn = computed({