Browse Source

Merge branch 'master' into eta1.6.8

Karsa 9 months ago
parent
commit
809e3a2ae5
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/ppt_manage/mixins/pptMixins.js

+ 4 - 2
src/views/ppt_manage/mixins/pptMixins.js

@@ -554,8 +554,10 @@ export default {
           let minData=[],maxData=[];
           let minData=[],maxData=[];
           if([1,2,4,6].includes(MyChartType)) {
           if([1,2,4,6].includes(MyChartType)) {
             options.series.forEach(item => {
             options.series.forEach(item => {
-              minData.push(item.data[0][0])
-              maxData.push(item.data[item.data.length-1][0])
+              if(item.data&&item.data.length) {
+                minData.push(item.data[0][0])
+                maxData.push(item.data[item.data.length-1][0])
+              }
             })
             })
           }
           }