Skip to content

Commit

Permalink
fix(hooks): vm.$router should not be computed wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
u3u committed Jul 18, 2019
1 parent 8a909f0 commit 8483d43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/useRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ import { getRuntimeVM } from './util/runtime';
export default function useRouter() {
const vm = getRuntimeVM();
const route = computed(() => vm.$route);
const router = computed(() => vm.$router);
return { route, router };
return { route, router: vm.$router };
}

0 comments on commit 8483d43

Please sign in to comment.