mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
enable client side routing for smooth transitions
This commit is contained in:
parent
150031d847
commit
46869b3b5b
@ -10,8 +10,7 @@ async function render(pageContext: PageContextClient) {
|
||||
app.mount('#app')
|
||||
}
|
||||
|
||||
/* To enable Client-side Routing:
|
||||
// To enable Client-side Routing:
|
||||
export const clientRouting = true
|
||||
// !! WARNING !! Before doing so, read https://vike.dev/clientRouting */
|
||||
|
||||
export { render }
|
||||
|
||||
@ -11,6 +11,8 @@ import { PageProps } from '#types/PageProps'
|
||||
|
||||
import type { PageContext } from '#types/PageContext'
|
||||
|
||||
const vuetify = CreateVuetify(i18n)
|
||||
|
||||
function createApp(
|
||||
Page: Page,
|
||||
pageProps: PageProps | undefined,
|
||||
@ -38,7 +40,7 @@ function createApp(
|
||||
const app = createSSRApp(PageWithLayout)
|
||||
app.use(pinia)
|
||||
app.use(i18n)
|
||||
app.use(CreateVuetify(i18n))
|
||||
app.use(vuetify)
|
||||
|
||||
// Make pageContext available from any Vue component
|
||||
setPageContext(app, pageContext)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user