wenhongquan 2 лет назад
Родитель
Сommit
4e9a81d79b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/views/statics/index.vue

+ 1 - 1
src/views/statics/index.vue

@@ -137,7 +137,7 @@ const treeclick = (data, node) => {
 
 
 const data = computed(() => {
 const data = computed(() => {
   let index = 0;
   let index = 0;
-  return carlist.value.map(i => { return { id: ++index, label: i.carNum,deviceInfos:i.deviceInfos,time:  i.lastCountTime==null?"离线": ((moment().unix()- moment(i.lastCountTime).unix())>1000*60*5?"离线":"在线") } })
+  return carlist.value.map(i => { return { id: ++index, label: i.carNum,deviceInfos:i.deviceInfos,time:  i.lastCountTime==null?"离线": ((moment().unix()- moment(i.lastCountTime).unix())>60*5?"离线":"在线") } })
 });
 });
 var jessibuca = null;
 var jessibuca = null;
 onMounted(() => {
 onMounted(() => {