Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed May 1, 2021
1 parent 82978f3 commit 014341d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playground/ssr-vue/src/pages/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<script setup>
import foo from '@foo'
import { reactive, defineAsyncComponent } from 'vue'
const ImportType = load('ImportType.vue')
const ImportType = load('ImportType')
const Foo = defineAsyncComponent(() =>
import('../components/Foo').then((mod) => mod.Foo)
)
function load(file) {
return defineAsyncComponent(() =>import(`../components/${file}`))
return defineAsyncComponent(() =>import(`../components/${file}.vue`))
}
const state = reactive({ count: 0 })
</script>
Expand Down

0 comments on commit 014341d

Please sign in to comment.