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
问题复现步骤:
a、b页面url前缀均为/pages/dirlist/main
2、从页面a中跳转到页面b,url为id为2 wx.navigateTo({ url: '/pages/dirlist/main?id=2' })
3、 navigateBack的时候无法从b页面跳到a页面,页面栈无变化,调用navigateBack闪了一下a页面后继续呈现b页面
期望的表现:
navigateBack能正常返回a页面(用原生的小程序测试过没有该问题,这是mpvue的bug?有什么好的解决方案)
The text was updated successfully, but these errors were encountered:
const dataStack = [] export default { onLoad() { // 首先保存data dataStack.push(...this.$data) // 其他初始化..... } onUnload() { // 清理完成后 // 最后恢复data dataStack.length && Object.assign(this.$data, dataStack.pop()) } }
Sorry, something went wrong.
@rchunping
const dataStack = [] export default { onLoad() { // 首先保存data dataStack.push({...this.$data}) // 其他初始化..... } onUnload() { // 清理完成后 // 最后恢复data dataStack.length && Object.assign(this.$data, dataStack.pop()) } }
参见#140,在官方解决以前,用@HelloZJW 的mpvue-loader分支搭配mpvue-page-factory 可解决这个问题
No branches or pull requests
[问题简单描述]
问题复现步骤:
a、b页面url前缀均为/pages/dirlist/main
wx.navigateTo({
url: '/pages/dirlist/main?id=1'
})
2、从页面a中跳转到页面b,url为id为2
wx.navigateTo({
url: '/pages/dirlist/main?id=2'
})
3、 navigateBack的时候无法从b页面跳到a页面,页面栈无变化,调用navigateBack闪了一下a页面后继续呈现b页面
期望的表现:
navigateBack能正常返回a页面(用原生的小程序测试过没有该问题,这是mpvue的bug?有什么好的解决方案)
The text was updated successfully, but these errors were encountered: