We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c235f0d commit f439071Copy full SHA for f439071
src/router-mixin.ts
@@ -93,7 +93,7 @@ export default {
93
const to = this.$router.getNewRoute();
94
const from = this.$router.getCurrentRoute();
95
96
- if (this.$options.beforeRouteUpdate && to.path === from.path) {
+ if (this.$options.beforeRouteUpdate && to && from && to.path === from.path) {
97
this.$options.beforeRouteUpdate.call(
98
this,
99
to,
0 commit comments