Answer the question
In order to leave comments, you need to log in
Dynamic loading and rendering of a component?
It is necessary, depending on the conditions, to load and render two components.
I'm trying like this:
new Vue({
router,
store,
async render: h => isMobile ? h(await import('@/AppMobile.vue')) : h(await import('@/App.vue'))
}).$mount('#app')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question