pingcrm/resources/js/app.js

20 lines
494 B
JavaScript
Raw Normal View History

2019-08-13 14:36:25 -03:00
import { InertiaApp } from '@inertiajs/inertia-vue'
2019-03-18 08:53:00 -03:00
import PortalVue from 'portal-vue'
import Vue from 'vue'
Vue.config.productionTip = false
2019-08-12 09:33:13 -03:00
Vue.mixin({ methods: { route: window.route } })
2019-08-13 14:36:25 -03:00
Vue.use(InertiaApp)
2019-03-18 08:53:00 -03:00
Vue.use(PortalVue)
let app = document.getElementById('app')
new Vue({
2019-08-13 14:36:25 -03:00
render: h => h(InertiaApp, {
2019-03-18 08:53:00 -03:00
props: {
2019-04-18 06:51:28 -03:00
initialPage: JSON.parse(app.dataset.page),
resolveComponent: name => import(`@/Pages/${name}`).then(module => module.default),
2019-03-18 08:53:00 -03:00
},
}),
}).$mount(app)