接入无人机mqtt
This commit is contained in:
@@ -100,8 +100,11 @@ export default function RobotTaskPage({ devices }) {
|
||||
};
|
||||
useEffect(() => {
|
||||
console.log('selectedPathWork changed:', selectedPathWork);
|
||||
if (JSON.parse(selectedPathWork.jsonData)?.path?.length == 0) {
|
||||
utils.message.warning('该路线暂无路径点数据');
|
||||
}
|
||||
setPoints(selectedPathWork ? JSON.parse(selectedPathWork.jsonData)?.path || [] : []);
|
||||
}, [selectedPathWork])
|
||||
}, [selectedPathWork]);
|
||||
|
||||
// 获取路线列表
|
||||
const fetchRouteList = async () => {
|
||||
|
||||
@@ -235,6 +235,8 @@ export default class DeviceController {
|
||||
}
|
||||
|
||||
case 'switchResult': {
|
||||
console.log(msg, "msg2222222222")
|
||||
|
||||
this.clearControlTimeout();
|
||||
|
||||
this.isRequestControl = false;
|
||||
@@ -270,6 +272,7 @@ export default class DeviceController {
|
||||
}
|
||||
|
||||
case 'switchPermission': {
|
||||
console.log(msg, "msg111111111111111")
|
||||
const platform = (
|
||||
msg.platform || ''
|
||||
).toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user