添加对题目的评论

This commit is contained in:
2024-07-01 13:10:43 +08:00
parent 238b1ff416
commit 922fc61ead
6 changed files with 258 additions and 2 deletions

View File

@@ -15,6 +15,9 @@ const ProblemInfo = defineAsyncComponent(
const ProblemSubmission = defineAsyncComponent(
() => import("./components/ProblemSubmission.vue"),
)
const ProblemComment = defineAsyncComponent(
() => import("./components/ProblemComment.vue"),
)
interface Props {
problemID: string
@@ -69,6 +72,9 @@ onBeforeUnmount(() => {
<n-tab-pane name="content" tab="题目描述">
<ProblemContent />
</n-tab-pane>
<n-tab-pane name="comment" tab="题目点评">
<ProblemComment />
</n-tab-pane>
<n-tab-pane name="info" tab="题目统计">
<ProblemInfo />
</n-tab-pane>
@@ -84,6 +90,9 @@ onBeforeUnmount(() => {
<n-tab-pane name="editor" tab="代码编辑">
<Editor />
</n-tab-pane>
<n-tab-pane name="comment" tab="题目点评">
<ProblemComment />
</n-tab-pane>
<n-tab-pane name="info" tab="题目统计">
<ProblemInfo />
</n-tab-pane>