mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 12:12:15 +01:00
add support for extension vite plugin loading, add vue setup hook for extensions
This commit is contained in:
@@ -18,11 +18,14 @@ createInertiaApp({
|
||||
import.meta.glob<DefineComponent>('./Pages/**/*.vue')
|
||||
),
|
||||
setup({ el, App, props, plugin }) {
|
||||
createApp({ render: () => h(App, props) })
|
||||
.use(plugin)
|
||||
.use(pinia)
|
||||
.use(ZiggyVue)
|
||||
.mount(el);
|
||||
const app = createApp({ render: () => h(App, props) });
|
||||
|
||||
// currently only one vue app setup hook is supported
|
||||
if (window.vueAppSetupHook) {
|
||||
window.vueAppSetupHook(app);
|
||||
}
|
||||
|
||||
app.use(plugin).use(pinia).use(ZiggyVue).mount(el);
|
||||
},
|
||||
|
||||
progress: {
|
||||
|
||||
Reference in New Issue
Block a user