Commit d234e186 authored by caicaicai's avatar caicaicai

修改

parent 542bf82c
......@@ -125,7 +125,7 @@ export default {
})
}else{
httpGet(carRealTimeLocationQuery2,{name:res.data.content[0].equipmentName}).then((res1) => {
if(res1.code == 200){
if(res1.data){
that.from.lat = res1.data.lat;
that.from.lon = res1.data.lon;
that.zuobiaoShow = true;
......@@ -134,6 +134,14 @@ export default {
type: 'success',
duration: 2500
})
}else{
this.$notify({
title: '暂无车辆位置!',
type: 'error',
duration: 2500
})
that.from.lat = 0;
that.from.lon = 0;
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment