File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1259,13 +1259,11 @@ export function createRouter(options: RouterOptions): Router {
1259
1259
app . component ( 'RouterLink' , RouterLink )
1260
1260
app . component ( 'RouterView' , RouterView )
1261
1261
1262
- if ( ! app . vapor ) {
1263
- app . config . globalProperties . $router = router
1264
- Object . defineProperty ( app . config . globalProperties , '$route' , {
1265
- enumerable : true ,
1266
- get : ( ) => unref ( currentRoute ) ,
1267
- } )
1268
- }
1262
+ app . config . globalProperties . $router = router
1263
+ Object . defineProperty ( app . config . globalProperties , '$route' , {
1264
+ enumerable : true ,
1265
+ get : ( ) => unref ( currentRoute ) ,
1266
+ } )
1269
1267
1270
1268
// this initial navigation is only necessary on client, on server it doesn't
1271
1269
// make sense because it will create an extra unnecessary navigation and could
You can’t perform that action at this time.
0 commit comments