20 lines
470 B
JavaScript
20 lines
470 B
JavaScript
import Inertia from 'inertia-vue'
|
|
import PortalVue from 'portal-vue'
|
|
import Vue from 'vue'
|
|
|
|
Vue.config.productionTip = false
|
|
Vue.mixin({ methods: { route: window.route } })
|
|
Vue.use(Inertia)
|
|
Vue.use(PortalVue)
|
|
|
|
let app = document.getElementById('app')
|
|
|
|
new Vue({
|
|
render: h => h(Inertia, {
|
|
props: {
|
|
initialPage: JSON.parse(app.dataset.page),
|
|
resolveComponent: name => import(`@/Pages/${name}`).then(module => module.default),
|
|
},
|
|
}),
|
|
}).$mount(app)
|