src/store/index.js
@@ -1,11 +1,13 @@ import Vue from 'vue' import Vuex from 'vuex' import map from './map' import app from './app' Vue.use(Vuex) export default new Vuex.Store({ state: { currentCorp: null, currentCorpType: null, L: null, map: null, // 实例化的map layerHelper: {}, // 图层控制器实现助手程序 @@ -31,6 +33,6 @@ getters: { }, modules: { map app } })