forked from drone/command-center-dashboard

shuishen
2025-04-02 e14358f85a7d32a753225f253ff223d17cf36c25
src/store/modules/home.js
@@ -1,4 +1,4 @@
import { set } from "lodash";
import { set } from 'lodash'
import { EDeviceTypeName } from '@/utils/staticData/enums'
const home = {
@@ -35,7 +35,7 @@
  actions: {},
  mutations: {
    setSingleUavHome: (state, data) => {
      state.singleUavHome = data;
         state.singleUavHome = data
    },
    setSelectedWorkSpaceId: (state, id) => {
      state.selectedWorkSpaceId = id
@@ -47,7 +47,7 @@
      window.localStorage.setItem('bs_osd', JSON.stringify(info))
    },
    setWsMessage: (state, data) => {
      state.wsMessage = data.host;
         state.wsMessage = data.host
    },
    setDeviceInfo: (state, data) => {
      const info = data.data
@@ -72,8 +72,7 @@
      const dock = state.deviceState.dockInfo[info.sn]
      if (info.host.mode_code !== undefined) {
        dock.basic_osd = info.host
        state.deviceState.drone_charge_state_new =
          dock.basic_osd.drone_charge_state
            state.deviceState.drone_charge_state_new = dock.basic_osd.drone_charge_state
        return
      }
      if (info.host.sdr) {
@@ -88,8 +87,8 @@
  getters:{
    test(state) {
      return state.singleUavHome.id.toString() + '65'
      },
   },
    }
  }
};
export default home;
export default home