test for async import.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user