refactor editor and panel.

This commit is contained in:
2023-01-31 22:16:41 +08:00
parent 7b0163885a
commit 17aa4afc04
8 changed files with 115 additions and 74 deletions

View File

@@ -4,7 +4,6 @@ import { isDesktop, isMobile } from "~/shared/composables/breakpoints"
import { Problem } from "utils/types"
const Editor = defineAsyncComponent(() => import("./components/Editor.vue"))
const Panel = defineAsyncComponent(() => import("./components/Panel.vue"))
const ProblemContent = defineAsyncComponent(
() => import("./components/ProblemContent.vue")
)
@@ -42,7 +41,6 @@ provide("problem", readonly(problem))
</n-tab-pane>
<n-tab-pane v-if="isMobile" name="editor" tab="代码编辑">
<Editor :problem="problem" />
<Panel />
</n-tab-pane>
<n-tab-pane
name="contest"
@@ -56,7 +54,6 @@ provide("problem", readonly(problem))
</n-gi>
<n-gi v-if="isDesktop">
<Editor :problem="problem" />
<Panel />
</n-gi>
</n-grid>
</template>