1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| // vuex 相关
| import Vue from 'vue'
| import Vuex from 'vuex'
| import mutations from './mutations.js'
| import getters from './getters'
| import actions from './action'
| Vue.use(Vuex)
| const state = {
| projectName: 'school_district_center',
| menuName: 'ACTION', // 菜单模块 module(默认为空查全部) SYSTEM 系统管理, VISITOR 进出入管理, CHECK 学区安全上报
| loading: false,
| userInfo: null
| }
|
| export default new Vuex.Store({
| state,
| getters,
| actions,
| mutations
| })
|
|