Tweak formatting of resolveComponent callback
This commit is contained in:
parent
50454a162a
commit
4697d5fac9
|
@ -13,9 +13,7 @@ new Vue({
|
||||||
render: h => h(Inertia, {
|
render: h => h(Inertia, {
|
||||||
props: {
|
props: {
|
||||||
initialPage: JSON.parse(app.dataset.page),
|
initialPage: JSON.parse(app.dataset.page),
|
||||||
resolveComponent: (name) => {
|
resolveComponent: name => import(`@/Pages/${name}`).then(module => module.default),
|
||||||
return import(`@/Pages/${name}`).then(module => module.default)
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}).$mount(app)
|
}).$mount(app)
|
||||||
|
|
Loading…
Reference in New Issue