pingcrm/resources/js/app.js

25 lines
618 B
JavaScript
Raw Normal View History

2019-03-18 08:53:00 -03:00
import Vue from 'vue'
import VueMeta from 'vue-meta'
import PortalVue from 'portal-vue'
import { InertiaProgress } from '@inertiajs/progress'
import { createInertiaApp } from '@inertiajs/inertia-vue'
2019-03-18 08:53:00 -03:00
Vue.config.productionTip = false
2019-08-12 09:33:13 -03:00
Vue.mixin({ methods: { route: window.route } })
2019-03-18 08:53:00 -03:00
Vue.use(PortalVue)
Vue.use(VueMeta)
2019-03-18 08:53:00 -03:00
2020-09-24 12:37:26 -03:00
InertiaProgress.init()
createInertiaApp({
resolve: name => require(`./Pages/${name}`),
setup({ el, app, props }) {
new Vue({
metaInfo: {
titleTemplate: title => (title ? `${title} - Ping CRM` : 'Ping CRM'),
2021-02-27 11:00:09 -03:00
},
render: h => h(app, props),
}).$mount(el)
},
})