test for async import.

This commit is contained in:
2023-04-06 19:56:03 +08:00
parent 14c42c6744
commit 007de440d6
3 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import TextEditor from "~/shared/TextEditor.vue" import TextEditor from "~/shared/TextEditor.vue"
import Monaco from "~/shared/Monaco.vue"
import { SelectOption, UploadCustomRequestOptions } from "naive-ui" import { SelectOption, UploadCustomRequestOptions } from "naive-ui"
import { unique } from "~/utils/functions" import { unique } from "~/utils/functions"
@@ -17,6 +16,8 @@ import {
uploadTestcases, uploadTestcases,
} from "../api" } from "../api"
const Monaco = defineAsyncComponent(() => import("~/shared/Monaco.vue"))
interface Props { interface Props {
problemID?: string problemID?: string
contestID?: string contestID?: string

View File

@@ -1,8 +1,9 @@
<script setup lang="ts"> <script setup lang="ts">
import Monaco from "~/shared/Monaco.vue"
import { isDesktop } from "~/shared/composables/breakpoints" import { isDesktop } from "~/shared/composables/breakpoints"
import { code } from "~/shared/composables/learn" import { code } from "~/shared/composables/learn"
const Monaco = defineAsyncComponent(() => import("~/shared/Monaco.vue"))
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()

View File

@@ -1,11 +1,12 @@
<script lang="ts" setup> <script lang="ts" setup>
import { SOURCES } from "utils/constants" import { SOURCES } from "utils/constants"
import { Problem } from "utils/types" import { Problem } from "utils/types"
import Monaco from "~/shared/Monaco.vue"
import { code } from "oj/composables/code" import { code } from "oj/composables/code"
import { isDesktop } from "~/shared/composables/breakpoints" import { isDesktop } from "~/shared/composables/breakpoints"
import Form from "./Form.vue" import Form from "./Form.vue"
const Monaco = defineAsyncComponent(() => import("~/shared/Monaco.vue"))
interface Props { interface Props {
problem: Problem problem: Problem
} }