Skip to content

Commit 02a3c5b

Browse files
committed
chore: remove vapor flag
1 parent 668f808 commit 02a3c5b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/router/src/router.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)