Skip to content
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

onUnload 再 onLoad 后 data 不会重置么? #213

Closed
blade254353074 opened this issue Apr 1, 2018 · 3 comments
Closed

onUnload 再 onLoad 后 data 不会重置么? #213

blade254353074 opened this issue Apr 1, 2018 · 3 comments
Labels
wontfix This will not be worked on

Comments

@blade254353074
Copy link

data {
  checked: false
}
onLoad () {
  console.log(this.checked) // 第一次进入为 false, 第二次进入页面就变成了 true
  this.checked = true
  // 返回上一页
}
@anchengjian
Copy link
Member

#140 跟这个属于同一个问题,在现有的设计下,一个 Page 就只有一个 Vue.js 的实例。

@blade254353074
Copy link
Author

�只有一个实例我觉得没问题,只是你们是否可以判断出页面退出(返回上一页)的状态,进行一个恢复初始 data 的操作?

@mpvue-bot mpvue-bot bot added the wontfix This will not be worked on label Oct 23, 2018
@mpvue-bot
Copy link

mpvue-bot bot commented Oct 23, 2018

issue超过30天无更新或响应,7天后将自动关闭,如果问题状态有更新请及时更新issue

@mpvue-bot mpvue-bot bot closed this as completed Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants