-
Notifications
You must be signed in to change notification settings - Fork 10
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
关于路由状态切换到旧的状态是否保存上次的数据 #7
Comments
|
有的表单页面,属性很多,重置比较麻烦...是否可以考虑可配置的去设置是否缓存vmodel |
avalon的vmodel都是一次定义终身存在的 - |
你可以直接定义 |
哦哦,谢了... 那{reload: true}的作用是什么?我不是很明白 |
a -> a其实是不会重新操作视图的,加了 reload: true会强制刷视图 |
刷视图的意思就是重新执行一遍进入视图,完成进入视图的过程?但是数据还是没变? |
刷新就是会重新通过 innerHTML = template 重新写dom |
数据没变,重写dom应该也没什么变化吧?那这样好像意义不大 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在我的项目中,我想达到两次进入同一个路由的时候,第二次进入这个路由的时候不会保存上次的数据,但是我发现没有配置的参数,使用了avalon.go中的option中的reload为true,依然不会实现路由的视图刷新?
The text was updated successfully, but these errors were encountered: