提交 bdeca4e4 编写于 作者: 雪洛's avatar 雪洛 提交者: qiang

fix(web): 修复进入未使用下拉刷新的页面控制台报错的Bug

上级 d3e17b5b
...@@ -18,7 +18,9 @@ export default defineSystemComponent({ ...@@ -18,7 +18,9 @@ export default defineSystemComponent({
ref(null)) as Ref<null> ref(null)) as Ref<null>
const _pageRefresh = const _pageRefresh =
!__NODE_JS__ && __UNI_FEATURE_PULL_DOWN_REFRESH__ !__NODE_JS__ &&
__UNI_FEATURE_PULL_DOWN_REFRESH__ &&
(pageMeta.enablePullDownRefresh || __X__)
? usePageRefresh(refreshRef) ? usePageRefresh(refreshRef)
: null : null
const pageRefresh: Ref<typeof _pageRefresh> = ref(null) const pageRefresh: Ref<typeof _pageRefresh> = ref(null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册