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 {
12591259 app . component ( 'RouterLink' , RouterLink )
12601260 app . component ( 'RouterView' , RouterView )
12611261
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+ } )
12691267
12701268 // this initial navigation is only necessary on client, on server it doesn't
12711269 // make sense because it will create an extra unnecessary navigation and could
You can’t perform that action at this time.
0 commit comments