diff --git a/packages/uni-h5/src/framework/setup/page.ts b/packages/uni-h5/src/framework/setup/page.ts index 8890be5e7762371fec9cc0d5a4d98e6d709da580..0f58ec617d41645e7215ce6be6abb2c9577e25ed 100644 --- a/packages/uni-h5/src/framework/setup/page.ts +++ b/packages/uni-h5/src/framework/setup/page.ts @@ -160,11 +160,12 @@ export function initPage(vm: ComponentPublicInstance) { navigationBarBackgroundColor: pageMeta.navigationBar.backgroundColor, navigationBarTextStyle: pageMeta.navigationBar.titleColor, navigationBarTitleText: pageMeta.navigationBar.titleText, - titleImage: pageMeta.navigationBar.titleImage, - navigationStyle: pageMeta.navigationBar.style, - disableScroll: pageMeta.disableScroll, - enablePullDownRefresh: pageMeta.enablePullDownRefresh, - onReachBottomDistance: pageMeta.onReachBottomDistance, + titleImage: pageMeta.navigationBar.titleImage || '', + navigationStyle: pageMeta.navigationBar.style || 'default', + disableScroll: pageMeta.disableScroll || false, + enablePullDownRefresh: pageMeta.enablePullDownRefresh || false, + onReachBottomDistance: + pageMeta.onReachBottomDistance || ON_REACH_BOTTOM_DISTANCE, }) } currentPagesMap.set(normalizeRouteKey(page.path, page.id), vm)