docs: add onAfterPageLoad in runtime-api doc

pull/4126/head
lejunyang 1 year ago
parent 133a7a78da
commit 9808770ed5

@ -107,6 +107,10 @@ interface Router {
* updated). Return `false` to cancel the navigation. * updated). Return `false` to cancel the navigation.
*/ */
onBeforePageLoad?: (to: string) => Awaitable<void | boolean> onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
/**
* Called after the page component is loaded (before the page component is updated).
*/
onAfterPageLoad?: (to: string) => Awaitable<void>
/** /**
* Called after the route changes. * Called after the route changes.
*/ */

@ -103,6 +103,7 @@ interface Router {
* atualizado). Retorne `false` para cancelar la navegación. * atualizado). Retorne `false` para cancelar la navegación.
*/ */
onBeforePageLoad?: (to: string) => Awaitable<void | boolean> onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
onAfterPageLoad?: (to: string) => Awaitable<void>
/** /**
* Llamado después del cambio de ruta. * Llamado después del cambio de ruta.
*/ */

@ -107,6 +107,7 @@ interface Router {
* 탐색을 취소하려면 `false`를 반환. * 탐색을 취소하려면 `false`를 반환.
*/ */
onBeforePageLoad?: (to: string) => Awaitable<void | boolean> onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
onAfterPageLoad?: (to: string) => Awaitable<void>
/** /**
* 라우트가 변경된 후 호출. * 라우트가 변경된 후 호출.
*/ */

@ -103,6 +103,7 @@ interface Router {
* atualizado). Retorne `false` para cancelar a navegação. * atualizado). Retorne `false` para cancelar a navegação.
*/ */
onBeforePageLoad?: (to: string) => Awaitable<void | boolean> onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
onAfterPageLoad?: (to: string) => Awaitable<void>
/** /**
* Chamado após a mudança de rota. * Chamado após a mudança de rota.
*/ */

@ -103,6 +103,7 @@ interface Router {
* обновлено). Верните `false`, чтобы отменить навигацию. * обновлено). Верните `false`, чтобы отменить навигацию.
*/ */
onBeforePageLoad?: (to: string) => Awaitable<void | boolean> onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
onAfterPageLoad?: (to: string) => Awaitable<void>
/** /**
* Вызывается после изменения маршрута. * Вызывается после изменения маршрута.
*/ */

@ -102,6 +102,10 @@ interface Router {
* 在页面组件加载前history 状态更新后)调用。返回 `false` 表示取消导航 * 在页面组件加载前history 状态更新后)调用。返回 `false` 表示取消导航
*/ */
onBeforePageLoad?: (to: string) => Awaitable<void | boolean> onBeforePageLoad?: (to: string) => Awaitable<void | boolean>
/**
* 在页面组件加载后(页面组件实际更新前)调用
*/
onAfterPageLoad?: (to: string) => Awaitable<void>
/** /**
* 在路由更改后调用 * 在路由更改后调用
*/ */

Loading…
Cancel
Save