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

请问音乐播放器换肤效果怎么实现的? #8

Open
Niofh opened this issue May 3, 2017 · 2 comments
Open

请问音乐播放器换肤效果怎么实现的? #8

Niofh opened this issue May 3, 2017 · 2 comments

Comments

@Niofh
Copy link

Niofh commented May 3, 2017

No description provided.

@microzz
Copy link
Owner

microzz commented May 3, 2017

@Foreverofh 你好,在Vuex的状态里有skinColor,具体看https://github.com/microzz/vue-music-player/blob/2.0.0/src/main.js 以便在不同组件共享状态,mutations有changeSkinColor方法,组件通过commit来改变skinColor,同时还将skinColor通过localStorage保存记录,用户下次进入能记住上次的状态

@Niofh
Copy link
Author

Niofh commented May 4, 2017

@microzz 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants