@
ryncv 我刚才也用了 Object.freeze,请求用了 1.4min 最后回来还是没反应
this.loading = true
this.axios
.post(
'/api/tms/goodsMonitor/getWaybillOfDeviceInfo',
{
waybillNo: values.waybillNo
},
{ timeout: 200000 }
)
.then(response => {
this.loading = false
if (response) {
this.map.path = Object.freeze(response.gpsInfoList)
this.map.markers = Object.freeze(response.weightMonitorWorkList)
this.map.center = {
lng: this.map.path[this.map.path.length - 1].lng,
lat: this.map.path[this.map.path.length - 1].lat
}
this.map.car = {
lng: this.map.path[0].lng,
lat: this.map.path[0].lat
}
this.map.car = JSON.parse(JSON.stringify(this.map.center))
this.loading = false
}
})
.catch(() => {
this.loading = false
})
.finally(() => {
this.loading = false
})