Signed-off-by: jiangdayuan <jiangdayuan@huawei.com>
This commit is contained in:
jiangdayuan 2021-10-14 16:31:28 +08:00
parent fd1482f29f
commit 13dad12ace

View File

@ -235,6 +235,8 @@ void InitRouterModule(JSContext* ctx, JSValue& moduleObj)
ctx, moduleObj, ROUTE_PAGE_GET_LENGTH, JS_NewCFunction(ctx, PageGetLength, ROUTE_PAGE_GET_LENGTH, 0));
JS_SetPropertyStr(
ctx, moduleObj, ROUTE_PAGE_GET_STATE, JS_NewCFunction(ctx, PageGetState, ROUTE_PAGE_GET_STATE, 0));
JS_SetPropertyStr(
ctx, moduleObj, ROUTE_PAGE_GET_PARAMS, JS_NewCFunction(ctx, PageGetParams, ROUTE_PAGE_GET_PARAMS, 0));
JS_SetPropertyStr(
ctx, moduleObj, ROUTE_POSTPONE, JS_NewCFunction(ctx, PostponePageTransition, ROUTE_POSTPONE, 0));
}