Skip to content

Commit 8483d43

Browse files
committed
fix(hooks): vm.$router should not be computed wrapper
1 parent 8a909f0 commit 8483d43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/useRouter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ import { getRuntimeVM } from './util/runtime';
44
export default function useRouter() {
55
const vm = getRuntimeVM();
66
const route = computed(() => vm.$route);
7-
const router = computed(() => vm.$router);
8-
return { route, router };
7+
return { route, router: vm.$router };
98
}

0 commit comments

Comments
 (0)