commit | author | age
|
9bcb19
|
1 |
import Vue from 'vue' |
I |
2 |
import Vuex from 'vuex' |
|
3 |
|
|
4 |
import app from './modules/app' |
|
5 |
import user from './modules/user' |
|
6 |
|
|
7 |
// default router permission control |
|
8 |
// import permission from './modules/permission' |
|
9 |
|
|
10 |
// dynamic router permission control (Experimental) |
|
11 |
import permission from './modules/async-router' |
|
12 |
import getters from './getters' |
|
13 |
|
|
14 |
Vue.use(Vuex) |
|
15 |
|
|
16 |
export default new Vuex.Store({ |
|
17 |
modules: { |
|
18 |
app, |
|
19 |
user, |
|
20 |
permission |
|
21 |
}, |
|
22 |
state: { |
|
23 |
|
|
24 |
}, |
|
25 |
mutations: { |
|
26 |
|
|
27 |
}, |
|
28 |
actions: { |
|
29 |
|
|
30 |
}, |
|
31 |
getters |
|
32 |
}) |