25 lines
		
	
	
	
		
			622 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			622 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
| import Vue from 'vue'
 | |
| import VueMeta from 'vue-meta'
 | |
| import PortalVue from 'portal-vue'
 | |
| import { InertiaApp } from '@inertiajs/inertia-vue'
 | |
| 
 | |
| Vue.config.productionTip = false
 | |
| Vue.mixin({ methods: { route: window.route } })
 | |
| Vue.use(InertiaApp)
 | |
| Vue.use(PortalVue)
 | |
| Vue.use(VueMeta)
 | |
| 
 | |
| let app = document.getElementById('app')
 | |
| 
 | |
| new Vue({
 | |
|   metaInfo: {
 | |
|     title: 'Loading…',
 | |
|     titleTemplate: '%s | Ping CRM',
 | |
|   },
 | |
|   render: h => h(InertiaApp, {
 | |
|     props: {
 | |
|       initialPage: JSON.parse(app.dataset.page),
 | |
|       resolveComponent: name => import(`@/Pages/${name}`).then(module => module.default),
 | |
|     },
 | |
|   }),
 | |
| }).$mount(app)
 | 
