1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 1× 1× 1× 1× 1× 1× 1× 1× | import Vue from 'vue' import Vuex from 'vuex' import getters from './getters' import actions from './actions' import mutations from './mutations' import { WORKING_TIME } from '../config' Vue.use(Vuex) const state = { started: false, paused: false, stopped: false, isWorking: true, counter: WORKING_TIME, interval: null, timestamp: 0, soundEnabled: true } export default new Vuex.Store({ state, mutations, getters, actions }) |