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 83b267d commit 0df878cCopy full SHA for 0df878c
src/router-service.ts
@@ -108,8 +108,8 @@ export class RouterService {
108
public constructor(
109
{ routes }: NSVueRouterOptions,
110
{
111
- routeToCallback,
112
- routeBackCallback,
+ routeToCallback=null,
+ routeBackCallback=null,
113
routeBackFallbackPath = "",
114
logger = null,
115
frame = null,
@@ -458,11 +458,17 @@ export class RouterService {
458
}
459
460
if (isNavigatingBack) {
461
- this.routeBackCallback(newRoute, routeOptions);
+ // Ensure that callback is specified
462
+ if (this.routeBackCallback) {
463
+ this.routeBackCallback(newRoute, routeOptions);
464
+ }
465
466
this.vm.$navigateBack(routeOptions);
467
} else {
- this.routeToCallback(newRoute, routeOptions);
468
469
+ if (this.routeToCallback) {
470
+ this.routeToCallback(newRoute, routeOptions);
471
472
473
this.vm.$navigateTo(newRoute.component, routeOptions);
474
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments