problem submission tab,

This commit is contained in:
2023-04-23 11:53:47 +08:00
parent 387ef0999b
commit 3f7125f39f
5 changed files with 122 additions and 19 deletions

View File

@@ -10,6 +10,9 @@ const ProblemContent = defineAsyncComponent(
const ProblemInfo = defineAsyncComponent(
() => import("./components/ProblemInfo.vue")
)
const ProblemSubmission = defineAsyncComponent(
() => import("./components/ProblemSubmission.vue")
)
interface Props {
problemID: string
@@ -51,6 +54,9 @@ onBeforeUnmount(() => {
<n-tab-pane name="info" tab="题目统计">
<ProblemInfo />
</n-tab-pane>
<n-tab-pane name="submission" tab="我的提交">
<ProblemSubmission />
</n-tab-pane>
</n-tabs>
</n-scrollbar>
<n-tabs v-else default-value="content" type="segment">
@@ -63,6 +69,9 @@ onBeforeUnmount(() => {
<n-tab-pane name="info" tab="题目统计">
<ProblemInfo />
</n-tab-pane>
<n-tab-pane name="submission" tab="我的提交">
<ProblemSubmission />
</n-tab-pane>
</n-tabs>
</n-gi>
<n-gi v-if="isDesktop">