fix chain modal
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-04-30 09:42:38 -06:00
parent dd249c8753
commit 375a78b852
6 changed files with 35 additions and 67 deletions

View File

@@ -36,7 +36,7 @@ const props = defineProps<{
const emit = defineEmits<{
select: [id: string]
delete: [row: SubmissionOut, parentId: string]
"show-chain": [userId: number, taskId: number, username: string]
"show-chain": [submissionId: string, username: string]
}>()
const isChallenge = computed(() => props.row.task_type === TASK_TYPE.Challenge)
@@ -91,7 +91,7 @@ const subColumns = computed((): DataTableColumn<SubmissionOut>[] => [
type: "primary",
onClick: (e: Event) => {
e.stopPropagation()
emit("show-chain", r.userid, r.task_id, r.username)
emit("show-chain", r.id, r.username)
},
},
() => "查看",