fix(题目列表): 老师账号看题目列表也有「状态」列了,自己做对的题打勾
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
97049d562b
commit
48738f74d9
1 file changed
+6
-3
@@ -78,10 +78,13 @@ const tags = ref<Tag[]>([])
|
||||
const allCount = ref(0)
|
||||
const progress = ref<ProblemProgress | null>(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({
|
||||
|
||||
Reference in new issue
Block a user