|
|
@ -103,8 +103,8 @@ interface Router {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
onBeforeRouteChange?: (to: string) => Awaitable<void | boolean>
|
|
|
|
onBeforeRouteChange?: (to: string) => Awaitable<void | boolean>
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Called before the page component is loaded (after the history state is
|
|
|
|
* Called before the page component is loaded (after the history state is updated).
|
|
|
|
* updated). Return `false` to cancel the navigation.
|
|
|
|
* Return `false` to cancel the navigation.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
|
|
|
|
onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|