Каркас будущего приложения
This commit is contained in:
15
client/store/index.js
Normal file
15
client/store/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createStore } from 'vuex';
|
||||
import VuexPersistence from 'vuex-persist';
|
||||
|
||||
import root from './root.js';
|
||||
|
||||
const debug = process.env.NODE_ENV !== 'production';
|
||||
|
||||
const vuexLocal = new VuexPersistence();
|
||||
|
||||
export default createStore(Object.assign({}, root, {
|
||||
modules: {
|
||||
},
|
||||
strict: debug,
|
||||
plugins: [vuexLocal.plugin]
|
||||
}));
|
||||
Reference in New Issue
Block a user