File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11<template >
22 <header >
33 <nav >
4- <RouterLink to =" /" activeClass =" active" > Home </RouterLink >
5- <RouterLink to =" /404" activeClass =" active" > 404 </RouterLink >
4+ <RouterLink to =" /" activeClass =" active" >Home</RouterLink >
5+ <RouterLink to =" /404" activeClass =" active" >404</RouterLink >
66 </nav >
77 </header >
88</template >
Original file line number Diff line number Diff line change 1- import { createApp , createSSRApp } from 'vue' ;
21// Vite can't seem to split a module w/ static & dynamic imports, so may as well statically import everything
2+ import { createApp , createSSRApp } from 'vue' ;
33import { createWebHistory , createMemoryHistory , createRouter } from 'vue-router' ;
44
55import App from './App.vue' ;
@@ -19,7 +19,9 @@ if (typeof window !== 'undefined') {
1919 } ) ;
2020
2121 const app = import . meta. env . DEV ? createApp ( App ) : createSSRApp ( App ) ;
22- app . use ( router ) . mount ( '#app' ) ;
22+ app . use ( router ) ;
23+
24+ router . isReady ( ) . then ( ( ) => app . mount ( '#app' ) ) ;
2325}
2426
2527export async function prerender ( data ) {
You can’t perform that action at this time.
0 commit comments