This commit is contained in:
TiclemFR
2023-12-30 10:02:41 +01:00
parent dc34fadf56
commit 754f297683

View File

@@ -9,9 +9,8 @@ createInertiaApp({
title: (title) => `${title}`,
resolve: (name) =>
resolvePageComponent(
// `./Pages/${name}.vue`,
`./Pages/**/${name}.vue`
// import.meta.glob("./Pages/**/*.vue")
`./Pages/${name}.vue`,
import.meta.glob("./Pages/**/*.vue")
),
setup({ el, app, props, plugin }) {
return createApp({ render: () => h(app, props) })