初始提交
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user