GuLiMmo
2024-03-22 d4d5d48934c3c9647ae73eb2e61cd6bd5a8bba69
src/store/index.ts
@@ -99,8 +99,8 @@
  clientId: '', // mqtt 连接 唯一客户端id,
  waylineTool: {
    isShow: false as boolean,
    wayline: {} as any,
    position: null as any,
    selectedPoint: undefined as number | undefined,
    selectedAction: undefined as any | undefined,
    kmzPath: '' as string
  }
})
@@ -211,10 +211,10 @@
    state.clientId = clientId
  },
  // 设置wayline中的信息
  SET_WAYLINE_INFO (state, { isShow, wayline, position }) {
    state.waylineTool.isShow = isShow
    state.waylineTool.wayline = wayline
    state.waylineTool.position = position
  SET_WAYLINE_INFO (state, { isShow, selectedPoint, selectedAction }) {
    isShow !== undefined && (state.waylineTool.isShow = isShow)
    state.waylineTool.selectedPoint = selectedPoint
    selectedAction !== undefined && (state.waylineTool.selectedAction = selectedAction)
  },
  SET_WAYLINE_KMZPATH (state, kmzPath) {
    state.waylineTool.kmzPath = kmzPath