123456789101112131415161718192021
  1. import Vue from 'vue'
  2. import { createInertiaApp } from '@inertiajs/inertia-vue'
  3. import { InertiaProgress } from '@inertiajs/progress'
  4. Vue.prototype.$route = route
  5. createInertiaApp({
  6. resolve: (name) => import(`./pages/${name}`),
  7. setup({ el, App, props, plugin }) {
  8. Vue.use(plugin)
  9. new Vue({
  10. render: (h) => h(App, props),
  11. }).$mount(el)
  12. },
  13. })
  14. InertiaProgress.init({
  15. color: '#eb4432',
  16. })