Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f439071

Browse files
committed
fix: Possible crash when navigating to a page on app init
1 parent c235f0d commit f439071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/router-mixin.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default {
9393
const to = this.$router.getNewRoute();
9494
const from = this.$router.getCurrentRoute();
9595

96-
if (this.$options.beforeRouteUpdate && to.path === from.path) {
96+
if (this.$options.beforeRouteUpdate && to&&from&&to.path === from.path) {
9797
this.$options.beforeRouteUpdate.call(
9898
this,
9999
to,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /