优化机器人任务 界面 匹配和实时经纬度
This commit is contained in:
@@ -265,7 +265,7 @@ export default function RobotTaskPage() {
|
||||
setExecutingRobot(targetDevice);
|
||||
setClearNavLine(v => v + 1); // 清空地图轨迹
|
||||
if (isFirstConnect.current) { isFirstConnect.current = false; controllerRef.current?.connectDevice(targetDevice); } else { controllerRef.current?.switchDevice(targetDevice); }
|
||||
setShowVideo(true);
|
||||
//setShowVideo(true);
|
||||
};
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ export default function RobotTaskPage() {
|
||||
console.log('🔄 检测到正在执行任务的新设备,开始连接', targetDevice);
|
||||
|
||||
if (isFirstConnect.current) { isFirstConnect.current = false; controllerRef.current?.connectDevice(targetDevice); } else { controllerRef.current?.switchDevice(targetDevice); }
|
||||
setShowVideo(true);
|
||||
//setShowVideo(true);
|
||||
|
||||
}, [devices, taskPoolList, executingRobot, runningPoolTask]);
|
||||
useEffect(() => {
|
||||
@@ -540,7 +540,7 @@ export default function RobotTaskPage() {
|
||||
setExecutingRobot(targetDevice);
|
||||
setClearNavLine(v => v + 1); // 清空地图轨迹
|
||||
if (isFirstConnect.current) { isFirstConnect.current = false; controllerRef.current?.connectDevice(targetDevice); } else { controllerRef.current?.switchDevice(targetDevice); }
|
||||
setShowVideo(true);
|
||||
//setShowVideo(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1879,7 +1879,7 @@ export default function RobotTaskPage() {
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
{showVideo && executingRobot && execute && taskPoolList.length > 0 && (
|
||||
{/*{showVideo && executingRobot && execute && taskPoolList.length > 0 && (
|
||||
<DraggableBox
|
||||
defaultPosition={{ x: 50, y: 50 }}
|
||||
title={t('devices.robotPanoramaVideo', { robot: executingRobot.deviceAlias || executingRobot.serialNumber })}
|
||||
@@ -1894,7 +1894,7 @@ export default function RobotTaskPage() {
|
||||
/>
|
||||
</div>
|
||||
</DraggableBox>
|
||||
)}
|
||||
)}*/}
|
||||
</div >
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user