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