bug修复
This commit is contained in:
parent
5dd78c1166
commit
86132f766c
|
|
@ -32,6 +32,9 @@ export const getRobotTokenFn = async () => {
|
|||
bfix: 1,
|
||||
}
|
||||
const res = await initLoginApi(loginParams)
|
||||
robotData.setTokenInfo({
|
||||
deviceToken: res.data.token,
|
||||
})
|
||||
return res.data.token
|
||||
}
|
||||
|
||||
|
|
@ -58,6 +61,10 @@ export const getRobotDeviceListFn = async () => {
|
|||
const { data: res } = await getDeviceInfoApi()
|
||||
if (res?.data?.length > 0) {
|
||||
const deviceInfo = res.data[0]
|
||||
robotData.setRobotInfo({
|
||||
devName: deviceInfo.devName,
|
||||
puId: deviceInfo.puId,
|
||||
})
|
||||
return {
|
||||
devName: deviceInfo.devName,
|
||||
puId: deviceInfo.puId,
|
||||
|
|
@ -102,6 +109,8 @@ export const getRobotMapInfoFn = async (puId) => {
|
|||
mapId: MapId,
|
||||
}
|
||||
|
||||
robotData.setMapInfo(mapInfo)
|
||||
|
||||
return mapInfo
|
||||
}
|
||||
}
|
||||
|
|
@ -133,6 +142,8 @@ export const getRobotPointsInfoFn = async (puId) => {
|
|||
Robot_x: res?.data?.Robot_x,
|
||||
Robot_y: res?.data?.Robot_y,
|
||||
}
|
||||
|
||||
robotData.setRobotPoints(pointsInfo)
|
||||
return pointsInfo
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -470,6 +470,7 @@ const onHandlePartSend = async () => {
|
|||
})
|
||||
if (res.code == 200) {
|
||||
message.success('下发成功')
|
||||
selectList.value = []
|
||||
getProjectPersonList()
|
||||
} else {
|
||||
message.error(res.message)
|
||||
|
|
|
|||
Loading…
Reference in New Issue