瀏覽代碼

沙盘页面BUG修改

Koishi 5 小時之前
父節點
當前提交
247fab1be6
共有 1 個文件被更改,包括 6 次插入3 次删除
  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;