mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-10 14:05:05 +08:00
31 lines
489 B
JavaScript
31 lines
489 B
JavaScript
import Vue from 'vue'
|
|
import Vuex from 'vuex'
|
|
|
|
Vue.use(Vuex)
|
|
|
|
export default new Vuex.Store({
|
|
state: {
|
|
theme: 'light',
|
|
iconActive: 'list'
|
|
},
|
|
getters: {
|
|
getTheme: state => {
|
|
return state.theme
|
|
},
|
|
getIconActive: state => {
|
|
return state.iconActive
|
|
}
|
|
},
|
|
mutations: {
|
|
SET_THEME: (state, payload) => {
|
|
state.theme = payload
|
|
},
|
|
SET_ICON_ACTIVE: (state, payload) => {
|
|
state.iconActive = payload
|
|
}
|
|
},
|
|
actions: {
|
|
|
|
}
|
|
})
|