chc преди 1 година
родител
ревизия
9d628c02c2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/map/changeMap.vue

+ 1 - 1
src/views/map/changeMap.vue

@@ -193,7 +193,7 @@ eventBus.on('rainLegend2', (e) => {
           maxIndex=index
         }
       })
-      rainLegendNow2.value = colors
+      rainLegendNow2.value = colors.slice(minIndex, maxIndex + 1);
   // if (Number(e.max) > 0.5) {
   //   let level1 = Number(((e.max - 0.5) / 3 + 0.5).toFixed(2))
   //   let level2 = Number((((e.max - 0.5) / 3) * 2 + 0.5).toFixed(2))