souvenir/src/store.js

26 lines
369 B
JavaScript
Raw Normal View History

2019-03-08 22:17:59 +00:00
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
2019-03-09 21:54:07 +00:00
welcomed: false,
timer: {
selected: 2,
list: [2, 3, 5]
}
2019-03-08 22:17:59 +00:00
},
mutations: {
2019-03-09 21:54:07 +00:00
welcome (store, value) {
store.welcomed = value
},
updateTimer (store, time) {
store.timer.selected = time
}
2019-03-08 22:17:59 +00:00
},
actions: {
}
})