瀏覽代碼

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

1004749546@qq.com 4 年之前
父節點
當前提交
9a019e77ba
共有 1 個文件被更改,包括 1 次插入5 次删除
  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,