|
@@ -109,15 +109,15 @@ export default defineStore<'marker', MarkerStateType, {}, MainActionsType>(
|
|
|
this.toggleLoading();
|
|
|
const { data } = await getAllvideoDevice();
|
|
|
let videoData = [];
|
|
|
- // for(var index in data){
|
|
|
- // if(data[index].gpsX){
|
|
|
- // console.log(index);
|
|
|
- // videoData.push(data[index]);
|
|
|
- // }
|
|
|
- // }
|
|
|
+ for(var index in data){
|
|
|
+ if(data[index].gpsX){
|
|
|
+ console.log(index);
|
|
|
+ videoData.push(data[index]);
|
|
|
+ }
|
|
|
+ }
|
|
|
this.videoSurveillance = [];
|
|
|
|
|
|
- this.videoSurveillance = Object.values(data).map((item) => ({
|
|
|
+ this.videoSurveillance = Object.values(videoData).map((item) => ({
|
|
|
...item,
|
|
|
locations: `${item.gpsX},${item.gpsY}`,
|
|
|
}));
|