ramove rank

This commit is contained in:
xuyue committed 2026-03-29 10:07:27 -06:00
1 parent 951e53c1dd
commit ecce21aaaf
6 files changed
-153

No files matched your search

@@ -37,7 +37,6 @@ const emit = defineEmits<{
select: [id: string]
delete: [row: SubmissionOut, parentId: string]
"show-chain": [conversationId: string]
nominate: [row: SubmissionOut]
}>()
const isChallenge = computed(() => props.row.task_type === TASK_TYPE.Challenge)
@@ -77,30 +76,6 @@ const subColumns = computed((): DataTableColumn<SubmissionOut>[] => [
)
},
},
{
title: "排名",
key: "nominated",
width: 60,
render: (r: SubmissionOut) => {
if (r.username !== user.username) {
return r.nominated
? h("span", { style: { color: "#f0a020" } }, "🏅")
: null
}
return h(
NButton,
{
text: true,
title: r.nominated ? "已参与排名(点击可重新提名)" : "参与排名",
onClick: (e: Event) => {
e.stopPropagation()
emit("nominate", r)
},
},
() => (r.nominated ? "🏅" : "☆"),
)
},
},
...(isChallenge.value
? [
{