fix(名字): 比赛成绩、全班情况、看板、题单、统计里的名字不再用真名,一律和排行榜一样显示 ks241XXX;导出成绩去掉姓名列
Deploy / deploy (push) Canceled after 0s
Deploy / deploy (push) Canceled after 0s
两个写法不同的 UserName 合成 shared/components/UserName.vue 一个。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2bb74652a0
commit
0cee4ef779
10 files changed
+44
-88
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { getClassBoard, setClassLesson } from "oj/api"
|
||||
import UserName from "shared/components/UserName.vue"
|
||||
import { useLeaveStudents } from "shared/composables/leaveStudents"
|
||||
import { useCollabStore } from "shared/store/collab"
|
||||
import { useConfigStore } from "shared/store/config"
|
||||
@@ -159,8 +160,9 @@ const GROUP_ORDER: Record<Group, number> = {
|
||||
leave: 5,
|
||||
}
|
||||
|
||||
/** 名字和别处一样用用户名(ks241XXX),不用真名 */
|
||||
function nameOf(student: ClassBoardStudent) {
|
||||
return student.realName || student.username
|
||||
return student.username
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -491,9 +493,9 @@ function submissionsHref(
|
||||
target="_blank"
|
||||
:title="`看 ${nameOf(student)} 今天交的全部`"
|
||||
>
|
||||
{{ nameOf(student) }}
|
||||
<UserName :username="student.username" />
|
||||
</a>
|
||||
<template v-else>{{ nameOf(student) }}</template>
|
||||
<UserName v-else :username="student.username" />
|
||||
</td>
|
||||
<td>
|
||||
<n-tag
|
||||
|
||||
Reference in new issue
Block a user