-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不开启下拉刷新 H5 端onReady与useReady不执行 #12406
Comments
未能复现到该问题 |
您好,你的邮件我已经收到了。谢谢!
|
<script>
import Taro from '@tarojs/taro'
import { defineComponent, onMounted } from 'vue'
definePageConfig({
navigationBarTitleText: '首页',
navigationBarTextStyle: 'white',
navigationBarBackgroundColor: '#3FE01F',
disableScroll: false,
enablePullDownRefresh: true,
backgroundTextStyle: 'dark',
enableShareAppMessage: true,
enableShareTimeline: true
})
export default defineComponent({
props: {},
onReady() {
console.log('onReady') // 不开启下拉刷新 H5 端不执行
},
onShow() {
console.log('onShow')
console.log(new Date().getTime())
},
onLoad(options) {
console.log('onLoad')
console.log(options)
},
onHide() {
console.log('onHide')
},
onPullDownRefresh() {
console.log('onPullDownRefresh ')
},
onReachBottom() {
console.log('onReachBottom')
},
onPageScroll() {
console.log('onPageScroll')
},
setup() {
Taro.useDidShow(() => {
console.log('useDidShow')
console.log(new Date().getTime())
})
onMounted(() => {
console.log('onMounted')
console.log(document.querySelector('.div'))
})
Taro.useReady(() => {
console.log('useReady') // 不开启下拉刷新 H5 端不执行
console.log(new Date().getTime())
})
Taro.useDidHide(() => {
console.log('useDidHide')
})
Taro.usePullDownRefresh(() => {
console.log('usePullDownRefresh')
})
Taro.useReachBottom(() => {
console.log('useReachBottom')
})
Taro.usePageScroll((res) => {
console.log('usePageScroll')
})
}
})
</script>
把这vue代码复制到Taro工程中,run dev:h5 看下就知道有不有这问题了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: Chrome 版本 104.0.5112.102(正式版本)
使用框架: Vue 3
复现步骤
期望结果
不开启下拉刷新 H5 端onReady与useReady要执行
实际结果
不开启下拉刷新 H5 端onReady与useReady不执行
环境信息
The text was updated successfully, but these errors were encountered: