Explorar o código

修分析图表环境温度判断

liujiejie hai 4 días
pai
achega
65ba4c7a5f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/performance/components/chartsCom/BarChart.vue

+ 2 - 2
src/views/performance/components/chartsCom/BarChart.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2024-09-11 14:30:17
- * @LastEditTime: 2025-06-06 16:28:29
+ * @LastEditTime: 2025-06-12 09:09:57
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/chartsCom/BarChart.vue
@@ -160,7 +160,7 @@ export default {
         autosize: true, // 开启自适应
       };
       // **如果 Y 轴是 "温度偏差",添加两条红色虚线**
-      if (this.chartData.yaixs === "温度偏差") {
+      if (this.chartData.data[0].title === "温度偏差") {
         layout.shapes = [
           {
             type: "line",