Open twn39 opened 2 years ago
导入模块:
<template>
<div class="main">
<h1>
{{name}}
</h1>
<DashBoardApp />
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { defineAsyncComponent } from 'vue';
const dashboardApp = defineAsyncComponent(() => import('dashboard/Main'));
export default defineComponent({
data: function() {
return {
name: 'Hello Vue 3!',
}
},
components: {
DashBoardApp: dashboardApp,
}
});
</script>
remote:
host 配置: