mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-13 22:35:01 +02:00
vue3: 非同期コンポーネント読み込みの移行 (#6580)
* migrate async components * routerとwidgetsも
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { defineComponent, defineAsyncComponent } from 'vue';
|
||||
import Home from './index.home.vue';
|
||||
|
||||
export default defineComponent({
|
||||
@@ -11,7 +11,7 @@ export default defineComponent({
|
||||
|
||||
components: {
|
||||
Home,
|
||||
Welcome: () => import('./index.welcome.vue').then(m => m.default),
|
||||
Welcome: defineAsyncComponent(() => import('./index.welcome.vue').then(m => m.default)),
|
||||
},
|
||||
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user