Pārlūkot izejas kodu

隐藏同向轴

Karsa 2 gadi atpakaļ
vecāks
revīzija
adfad9964e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/views/chartShow/index.vue

+ 2 - 1
src/views/chartShow/index.vue

@@ -203,6 +203,7 @@ export default defineComponent({
           min: Number(chartData[sameSideIndex].MinData),
           max: Number(chartData[sameSideIndex].MaxData),
           tickWidth: sameSideIndex !== index ? 0 : 1,
+          visible: sameSideIndex === index
         }
 
         // //拼接标题 判断相同指标名称拼接来源
@@ -361,7 +362,7 @@ export default defineComponent({
           min: Number(chartData[sameSideIndex].MinData),
           max: Number(chartData[sameSideIndex].MaxData),
           tickWidth: sameSideIndex !== index ? 0 : 1,
-          visible: serie_yIndex === index ? true : false
+          visible: serie_yIndex === index && sameSideIndex ===index
         }
 
         // //拼接标题 判断相同指标名称拼接来源