添加提交

This commit is contained in:
2025-03-18 19:16:08 +08:00
parent 3618b5a4b2
commit e4e7507f85
15 changed files with 382 additions and 19 deletions

View File

@@ -0,0 +1,30 @@
<template>
<n-flex>
<n-tag
size="small"
:bordered="false"
type="primary"
v-if="props.submission.task_type === 'tutorial'"
>
教程
</n-tag>
<n-tag
:bordered="false"
size="small"
type="error"
v-if="props.submission.task_type === 'challenge'"
>
挑战
</n-tag>
<n-button text>{{ props.submission.task_title }}</n-button>
</n-flex>
</template>
<script setup lang="ts">
import type { SubmissionOut } from "../../utils/type"
interface Props {
submission: SubmissionOut
}
const props = defineProps<Props>()
</script>