xieb
2023-09-13 3667807a7b7418efc090ee3fa6a6b734bc3080bf
src/store/index.ts
@@ -5,12 +5,15 @@
import { getLayers } from '/@/api/layer'
import { LayerType } from '/@/types/mapLayer'
import { WaylineFile } from '/@/types/wayline'
import getter from './getters'
import { DevicesCmdExecuteInfo } from '/@/types/device-cmd'
import map from './map'
import common from '/@/store/common'
const initStateFunc = () => ({
  Layers: [
    {
      name: 'default',
      name: '默认',
      id: '',
      is_distributed: true,
      elements: [],
@@ -19,7 +22,7 @@
      type: 1
    },
    {
      name: 'share',
      name: '共享',
      id: '',
      is_distributed: true,
      elements: [],
@@ -130,7 +133,6 @@
    }
    if (info.host.job_number !== undefined) {
      dock.work_osd = info.host
      return
    }
  },
  SET_DRAW_VISIBLE_INFO (state, bool) {
@@ -241,7 +243,12 @@
  state: initStateFunc,
  getters,
  mutations,
  actions
  actions,
  modules: {
    getter,
    map,
    common
  },
}
const rootStore = createStore(storeOptions)