2021-12-08 12:15:39 -03:00
|
|
|
import { createApp, h } from 'vue'
|
2021-06-14 09:20:30 -03:00
|
|
|
import { InertiaProgress } from '@inertiajs/progress'
|
2021-12-08 12:15:39 -03:00
|
|
|
import { createInertiaApp } from '@inertiajs/inertia-vue3'
|
2019-03-18 08:53:00 -03:00
|
|
|
|
2020-09-24 12:37:26 -03:00
|
|
|
InertiaProgress.init()
|
|
|
|
|
2021-06-14 09:20:30 -03:00
|
|
|
createInertiaApp({
|
|
|
|
resolve: name => require(`./Pages/${name}`),
|
2022-01-18 15:22:59 -03:00
|
|
|
title: title => title ? `${title} - Ping CRM` : 'Ping CRM',
|
2021-12-08 12:15:39 -03:00
|
|
|
setup({ el, App, props, plugin }) {
|
2021-12-08 14:40:19 -03:00
|
|
|
createApp({ render: () => h(App, props) })
|
2021-12-08 12:15:39 -03:00
|
|
|
.use(plugin)
|
|
|
|
.mount(el)
|
2021-06-14 09:20:30 -03:00
|
|
|
},
|
|
|
|
})
|