24 lines
426 B
JavaScript
24 lines
426 B
JavaScript
|
|
import Vue from 'vue'
|
||
|
|
import Vuex from 'vuex'
|
||
|
|
|
||
|
|
import example from './module-example/index'
|
||
|
|
import glob from './modules/glob';
|
||
|
|
|
||
|
|
Vue.use(Vuex);
|
||
|
|
|
||
|
|
const debug = process.env.NODE_ENV !== 'production';
|
||
|
|
|
||
|
|
Vue.filter('time', timestamp => {
|
||
|
|
return new Date(timestamp).toLocaleTimeString()
|
||
|
|
});
|
||
|
|
|
||
|
|
export default new Vuex.Store({
|
||
|
|
modules: {
|
||
|
|
glob,
|
||
|
|
example
|
||
|
|
},
|
||
|
|
|
||
|
|
//strict: debug,
|
||
|
|
//plugins: debug ? [createLogger()] : []
|
||
|
|
});
|