mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
18 lines
307 B
Vue
18 lines
307 B
Vue
<template>
|
|
<div>
|
|
<async-test/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
async asyncData({ error }) {
|
|
try {
|
|
this.components.AsyncTest = await import(`@/components/test.vue`)
|
|
} catch (e) {
|
|
error({ statusCode: 404, message: 'Can not load test component' })
|
|
}
|
|
}
|
|
}
|
|
</script> |