Bladeren bron

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
修改

1004749546@qq.com 4 jaren geleden
bovenliggende
commit
9a019e77ba
1 gewijzigde bestanden met toevoegingen van 1 en 5 verwijderingen
  1. 1 5
      pages/index/index.vue

+ 1 - 5
pages/index/index.vue

@@ -336,11 +336,7 @@
 				let latitude = point.lat;
 				let longitude = point.lng;
 				let iconPath = ''
-				if (point.deviceStatus === 'PAUSE') {
-					iconPath = '/static/img/store-dky.png'
-				} else if (point.deviceStatus === 'USING' || point.deviceStatus === 'ON_LINE') {
-					iconPath = '/static/img/store.png'
-				} 
+				iconPath = point.deviceStatus === 'PAUSE' ? '/static/img/store-dky.png' : '/static/img/store.png'
 				let marker = {
 					iconPath: iconPath,
 					id: point.id || 0,