2024-04-29 16:02:59 +08:00

24 lines
577 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<LangProvider>
<component :is="layouts['defaults']" />
</LangProvider>
</div>
</template>
<script setup lang="ts">
import { loadingPage } from "@/utils/loading-page";
// 引入组件-异步组件
const layouts = {
defaults: defineAsyncComponent(() => import("@/layout/layout-defaults/index.vue")),
mixing: defineAsyncComponent(() => import("@/layout/layout-mixing/index.vue"))
};
onMounted(() => {
// 页面渲染完毕结束loading
loadingPage.done(200);
});
</script>
<style lang="scss" scoped></style>