Skip to content

Commit

Permalink
fix(web): 修复进入未使用下拉刷新的页面控制台报错的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Apr 30, 2024
1 parent 56e740d commit 7ce57d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/uni-h5/src/framework/components/page/pageBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export default /*#__PURE__*/ defineSystemComponent({
ref(null)) as Ref<null>

const _pageRefresh =
!__NODE_JS__ && __UNI_FEATURE_PULL_DOWN_REFRESH__
!__NODE_JS__ &&
__UNI_FEATURE_PULL_DOWN_REFRESH__ &&
(pageMeta.enablePullDownRefresh || __X__)
? usePageRefresh(refreshRef)
: null
const pageRefresh: Ref<typeof _pageRefresh> = ref(null)
Expand Down

0 comments on commit 7ce57d4

Please sign in to comment.