初始提交

This commit is contained in:
lyswhut
2019-08-16 17:27:23 +08:00
parent 4dc34a48f4
commit 14f7bd10a3
112 changed files with 24294 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
import music from '../utils/music'
export default {
theme(state) {
return (state.themes[state.setting.themeId] && state.themes[state.setting.themeId].class) || ''
},
themes(state) {
return {
active: state.setting.themeId,
list: state.themes,
}
},
source(state) {
return music.sources.find(s => s.id === state.setting.sourceId) || music.sources[0]
},
sources(state) {
return {
active: state.setting.sourceId,
list: music.sources,
}
},
userInfo(state) {
return state.userInfo
},
setting(state) {
return state.setting
},
electronStore(state) {
return state.electronStore
},
version(state) {
return state.version
},
}