src/store/index.ts
@@ -100,6 +100,7 @@ waylineTool: { isShow: false as boolean, wayline: {} as any, position: null as any, kmzPath: '' as string } }) @@ -210,9 +211,10 @@ state.clientId = clientId }, // 设置wayline中的信息 SET_WAYLINE_INFO (state, { isShow, wayline }) { SET_WAYLINE_INFO (state, { isShow, wayline, position }) { state.waylineTool.isShow = isShow state.waylineTool.wayline = wayline state.waylineTool.position = position }, SET_WAYLINE_KMZPATH (state, kmzPath) { state.waylineTool.kmzPath = kmzPath