在编辑地图之前先调用接口判断是否有处理中的任务,再进入编辑地图

This commit is contained in:
yyy 2025-05-22 16:35:15 +08:00
parent 6f4876fba6
commit 34391a6a5d
3 changed files with 18 additions and 8 deletions

View File

@ -5,7 +5,7 @@ VITE_DEV=true
# 请求路径 # 请求路径
# VITE_BASE_URL='http://192.168.77.50:48080' # VITE_BASE_URL='http://192.168.77.50:48080'
VITE_BASE_URL='http://10.10.100.17:48080' VITE_BASE_URL='http://10.10.100.24:48080'
# 文件上传类型server - 后端上传, client - 前端直连上传,仅支持 S3 服务 # 文件上传类型server - 后端上传, client - 前端直连上传,仅支持 S3 服务
VITE_UPLOAD_TYPE=server VITE_UPLOAD_TYPE=server

View File

@ -241,3 +241,10 @@ export const deletePositionChangePoint = async (data) => {
data data
}) })
} }
export const checkHaveTask = async (data) => {
return await request.post({
url: `/system/robot/task/checkHaveTask`,
data
})
}

View File

@ -193,13 +193,16 @@ const getStopOrRestore = async () => {
// //
const router = useRouter() // const router = useRouter() //
const editMap = () => { const editMap = async () => {
router.push({ let res = await MapApi.checkHaveTask()
name: 'editMapPageRealTimeMap', if (res) {
query: { router.push({
mapId: mapValue.value[1] name: 'editMapPageRealTimeMap',
} query: {
}) mapId: mapValue.value[1]
}
})
}
} }
const findDataById = (obj, id) => { const findDataById = (obj, id) => {