Parcourir la source

沙盘页面BUG修改

Koishi il y a 5 heures
Parent
commit
247fab1be6
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. 6 3
      src/views/SandTable/SandTable.vue

+ 6 - 3
src/views/SandTable/SandTable.vue

@@ -771,7 +771,8 @@ export default {
         const powerMax =
           Math.max(...seriesSpeed) < 5 ? 5 : Math.max(...seriesSpeed);
         const windSpeedMin = Math.min(...seriesGl);
-        const windSpeedMax = Math.max(...seriesGl);
+        const windSpeedMax =
+          Math.max(...seriesGl) < 0.5 ? 0.5 : Math.max(...seriesGl);
         const splitNumber = 5;
 
         let series = [
@@ -814,7 +815,8 @@ export default {
         const powerMax =
           Math.max(...seriesSpeed) < 5 ? 5 : Math.max(...seriesSpeed);
         const windSpeedMin = Math.min(...seriesGl);
-        const windSpeedMax = Math.max(...seriesGl);
+        const windSpeedMax =
+          Math.max(...seriesGl) < 0.5 ? 0.5 : Math.max(...seriesGl);
         const splitNumber = 5;
 
         let series = [
@@ -1050,7 +1052,8 @@ export default {
           const powerMax =
             Math.max(...seriesSpeed) < 5 ? 5 : Math.max(...seriesSpeed);
           const windSpeedMin = Math.min(...seriesGl);
-          const windSpeedMax = Math.max(...seriesGl);
+          const windSpeedMax =
+            Math.max(...seriesGl) < 0.5 ? 0.5 : Math.max(...seriesGl);
 
           const splitNumber = 5;