index.js
988 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import user from './modules/user'
import permission_routes from './modules/permission_routes'
import setTabs from './modules/setTabs'
Vue.use(Vuex);
const store = new Vuex.Store({
state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : {
zdbsm: '',
tdytList:[],
tddjList:[],
qlxzList:[],
qllxList:[],
zdtzmList:[],
qlsdfsList:[],
zjzlList:[],
gjList:[],
ssList:[],
qlrlxList:[],
xbList:[],
sshyList:[],
xzqList: [],
djqList: [],
djzqList: [],
//创建自然幢时需要用到的临时存储信息
zrzbsm: '',
xmmc: '',
zdmj: '',
zdzl: '',
zjlxList: [],
gyfsList: [],
},
modules: {
user,
setTabs,
permission_routes
},
getters
})
export default store