File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export default class VueRouter {
122
122
this . beforeHooks . push ( fn )
123
123
}
124
124
125
- onResolve ( fn : Function ) {
125
+ beforeResolve ( fn : Function ) {
126
126
this . resolveHooks . push ( fn )
127
127
}
128
128
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ declare class VueRouter {
21
21
currentRoute : Route ;
22
22
23
23
beforeEach ( guard : NavigationGuard ) : void ;
24
- onResolve ( guard : NavigationGuard ) : void ;
24
+ beforeResolve ( guard : NavigationGuard ) : void ;
25
25
afterEach ( hook : ( to : Route , from : Route ) => any ) : void ;
26
26
push ( location : RawLocation , onComplete ?: Function , onAbort ?: Function ) : void ;
27
27
replace ( location : RawLocation , onComplete ?: Function , onAbort ?: Function ) : void ;
You can’t perform that action at this time.
0 commit comments