反复开关几次下拉刷新后 下拉刷新功能正常但是下拉刷新的小图标不见了

- 发布:2020-06-24 18:02
- 更新:2020-06-26 03:28
- 阅读:601
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Window7
HBuilderX类型: 正式
HBuilderX版本号: 2.7.14
手机系统: Android
手机系统版本号: Android 10
手机厂商: 华为
手机机型: P30Pro
页面类型: nvue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
不管反复开关多少次下拉刷新,图标都得有
不管反复开关多少次下拉刷新,图标都得有
实际结果:
图标不见了
图标不见了
bug描述:
function getCurrentWebView(){
let pages = getCurrentPages()
let page =pages[pages.length - 1]
// #ifdef APP-PLUS
const currentWebview = page.$getAppWebview();//页面栈最顶层就是当前webview
return currentWebview
// #endif
}
switchPullRefresh(isSupport) {
// #ifdef APP-PLUS
const currentWebview = getCurrentWebView()
currentWebview.setStyle({
pullToRefresh: {
support: isSupport
}
});
// #endif
}
2 个回复
Absorbed66c (作者) - 码农一枚
Absorbed66c (作者) - 码农一枚
页面是nvue的 之前没用nvue是没问题的