We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题复现步骤:
期望的表现:
应该要打印 onLoad onShow mounted
观察到的表现:
打印结果 onLoad mounted
The text was updated successfully, but these errors were encountered:
进一步排查了一下,发现子组件的onShow生命周期,只有在页面第二次显示的时候,才会执行,而父组件的onShow,每次页面显示都会执行,包括第一次
Sorry, something went wrong.
作为Page的才有这些生命周期函数吧
因为在 onShow 的时候,子组件还没有创建,所以子组件第一次不会有 onShow 触发
No branches or pull requests
[问题简单描述]
问题复现步骤:
console.log('onLoad')
},
onShow () {
console.log('onShow')
},
mounted () {
console.log('mounted')
},
期望的表现:
应该要打印
onLoad
onShow
mounted
观察到的表现:
打印结果
onLoad
mounted
The text was updated successfully, but these errors were encountered: