19 lines
256 B
JavaScript
19 lines
256 B
JavaScript
|
import Vue from 'vue'
|
||
|
import Vuex from 'vuex'
|
||
|
Vue.use(Vuex)
|
||
|
|
||
|
export default new Vuex.Store({
|
||
|
player: {
|
||
|
isPlaying: false,
|
||
|
isBuffering: false,
|
||
|
volume: 0,
|
||
|
count: 0,
|
||
|
},
|
||
|
mutations: {
|
||
|
increment(player) {
|
||
|
player.count++
|
||
|
},
|
||
|
},
|
||
|
strict: true,
|
||
|
})
|