lxl-dev #3

Merged
zhanghao merged 122 commits from lxl-dev into dev 2026-08-24 13:55:18 +08:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit 2ae34b1f9f - Show all commits

View File

@ -350,9 +350,12 @@ const centerCanvasView = () => {
} }
const loadSourceMap = async () => { const loadSourceMap = async () => {
const connectedRobot = props.robotList.find(item => item.connectStatus == 1);
if (!connectedRobot) return;
const res = await getMapJson({ const res = await getMapJson({
robotId: props.robotList[0].id, robotId: connectedRobot.id,
mapName: props.robotList[0].robotMapName mapName: connectedRobot.robotMapName
}); });
if (res.code === 200) { if (res.code === 200) {
try { try {

View File

@ -112,7 +112,7 @@ const getRobot = async () => {
if (res.code === 200) { if (res.code === 200) {
robotList.value = res.rows robotList.value = res.rows
getRobot() // getRobot()
} }
} }