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 3dcfcf5 commit 97c6d83Copy full SHA for 97c6d83
src/router-mixin.ts
@@ -103,7 +103,7 @@ export default {
103
);
104
}
105
106
- if (to.beforeEnter && typeof to.beforeEnter === "function") {
+ if (to && to.beforeEnter && typeof to.beforeEnter === "function") {
107
const next = (vmContext) => {
108
if (typeof vmContext === "undefined") {
109
return;
@@ -116,7 +116,7 @@ export default {
116
117
};
118
119
- this.$options.beforeEnter.call(
+ to.beforeEnter.call(
120
this,
121
to,
122
from,
0 commit comments