12345678910111213141516171819202122232425262728 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- import { req,rootDocment } from '../config/util.js'
- import { api } from '../config/api.js'
- Vue.use(Vuex)
- Vue.prototype.$req = req
- Vue.prototype.$api = api
- Vue.prototype.$rootDocment = rootDocment
- const store = new Vuex.Store({
- state: {
- systemInfo:{},//系统信息
- },
- mutations: {
- setSystemInfo(state,data){//设置系统信息
- state.systemInfo = data
- },
- },
- getters: {
- },
- actions: {
- }
- })
- export default store
|