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
这个不太好描述。举个例子吧。 一个歌单里面有800首歌,我双击了第450首进行播放。 突然想看看歌词,点一下Playbar上面的coverIcon,看完再点一下coverIcon收起(也就是退出Player.vue的fullscreen) 这个时候歌单的界面会被重载,如果不记得歌词序号的话,还要慢慢往下翻。
transition
transition-group
The text was updated successfully, but these errors were encountered:
我认为这个最好还是能用 keep-alive 来实现,重新加载再 scrollTo 的话还会浪费一次网络请求。
但是当前的页面导航机制有点问题:如果导航栈中积累了多个路由(比如点击推荐歌单 -> 歌手 -> 专辑),这时候点击侧边栏中的导航项目(比如回到个性推荐页面),之前积累的路由不会被清空,而会一直保留在导航栈中。这种情况下,被 keep-alive 的组件可能永远没办法被 activate 了,白白浪费了内存。但如果之按照页面上的“返回”按钮一步步后退的话,就不会有这个问题。
Sorry, something went wrong.
No branches or pull requests
这个不太好描述。举个例子吧。
一个歌单里面有800首歌,我双击了第450首进行播放。
突然想看看歌词,点一下Playbar上面的coverIcon,看完再点一下coverIcon收起(也就是退出Player.vue的fullscreen)
这个时候歌单的界面会被重载,如果不记得歌词序号的话,还要慢慢往下翻。
或者把歌单页面有条件地进行Keep-alive。(这个方案貌似比上一个方案要复杂很多,我看代码中有许多transition
。如果改成基于v-if的keep-alive,需要把所有的transition
改成transition-group
,成本过高)The text was updated successfully, but these errors were encountered: