diff --git a/public/map/components/cesiumMap.vue b/public/map/components/cesiumMap.vue index 51f172e..45c938f 100644 --- a/public/map/components/cesiumMap.vue +++ b/public/map/components/cesiumMap.vue @@ -508,7 +508,7 @@ onMounted(async () => { ...foundShorePower, storePowerInstance: xelectricalBoxModel, storePowerId: item.id, - status: item.storePowerStatus == '在⽤' ? 1 : 0 + status: item.status === 3 }); } @@ -848,7 +848,7 @@ onMounted(async () => { return [mainPosition, targetPosition]; }, false), width: 3, - material: createFlowMaterial(0), + material: createFlowMaterial(entityItem.status), // 启用深度测试,使线条能够被地形遮挡 enableDepthTest: true }