fix
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-03-31 02:21:40 -06:00
parent 3c721224c8
commit 85e1681017
9 changed files with 46 additions and 141 deletions

View File

@@ -36,7 +36,7 @@ const props = defineProps<{
const emit = defineEmits<{
select: [id: string]
delete: [row: SubmissionOut, parentId: string]
"show-chain": [conversationId: string]
"show-chain": [userId: number, taskId: number]
}>()
const isChallenge = computed(() => props.row.task_type === TASK_TYPE.Challenge)
@@ -80,23 +80,21 @@ const subColumns = computed((): DataTableColumn<SubmissionOut>[] => [
? [
{
title: "提示词",
key: "conversation_id",
key: "prompt",
width: 70,
render: (r: SubmissionOut) => {
if (!r.conversation_id) return "-"
return h(
render: (r: SubmissionOut) =>
h(
NButton,
{
text: true,
type: "primary",
onClick: (e: Event) => {
e.stopPropagation()
emit("show-chain", r.conversation_id!)
emit("show-chain", r.userid, r.task_id)
},
},
() => "查看",
)
},
),
} as DataTableColumn<SubmissionOut>,
]
: []),