Browse Source

feat:修改bug

wangsisi 2 months ago
parent
commit
51564b7416
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/navigation.vue

+ 1 - 1
src/components/navigation.vue

@@ -177,7 +177,7 @@ const matchDataByVal = (sampleData, legendConfig) => {
                         isMatch = Math.floor(sampleVal) === min;
                     } else {
                         // 范围匹配:当区间为[0,1]时,值在[0,1)范围内匹配
-                        isMatch = sampleVal >= min && sampleVal < max;
+                        isMatch = Number(sampleVal) >= min && Number(sampleVal) <= max;
                     }
                     
                     if (isMatch) {