fix editor

This commit is contained in:
2025-10-06 11:56:25 +08:00
parent 76d5e0a78f
commit bc13976a78
3 changed files with 112 additions and 99 deletions

View File

@@ -15,8 +15,8 @@ const ProblemEditor = defineAsyncComponent(
const ContestEditor = defineAsyncComponent(
() => import("./components/ContestEditor.vue"),
)
const EditorWithTest = defineAsyncComponent(
() => import("./components/EditorWithTest.vue"),
const EditorForTest = defineAsyncComponent(
() => import("./components/EditorForTest.vue"),
)
const ProblemContent = defineAsyncComponent(
() => import("./components/ProblemContent.vue"),
@@ -151,7 +151,7 @@ watch(isMobile, (value) => {
<ContestEditor v-else />
</n-gi>
<n-gi v-if="isDesktop && screenMode === ScreenMode.code">
<EditorWithTest />
<EditorForTest />
</n-gi>
</n-grid>
<n-empty v-else :description="errMsg"></n-empty>