diff options
Diffstat (limited to 'src/components/Service.vue')
-rw-r--r-- | src/components/Service.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Service.vue b/src/components/Service.vue index 25b86d5..ac378ec 100644 --- a/src/components/Service.vue +++ b/src/components/Service.vue | |||
@@ -1,8 +1,9 @@ | |||
1 | <template> | 1 | <template> |
2 | <component v-bind:is="component" :item="item" :proxy="proxy"></component> | 2 | <component :is="component" :item="item" :proxy="proxy"></component> |
3 | </template> | 3 | </template> |
4 | 4 | ||
5 | <script> | 5 | <script> |
6 | import { defineAsyncComponent } from "vue"; | ||
6 | import Generic from "./services/Generic.vue"; | 7 | import Generic from "./services/Generic.vue"; |
7 | 8 | ||
8 | export default { | 9 | export default { |
@@ -17,7 +18,7 @@ export default { | |||
17 | if (type === "Generic") { | 18 | if (type === "Generic") { |
18 | return Generic; | 19 | return Generic; |
19 | } | 20 | } |
20 | return () => import(`./services/${type}.vue`); | 21 | return defineAsyncComponent(() => import(`./services/${type}.vue`)); |
21 | }, | 22 | }, |
22 | }, | 23 | }, |
23 | }; | 24 | }; |