Jelajahi Sumber

Merge branch 'master' into eta1.6.8

Karsa 9 bulan lalu
induk
melakukan
809e3a2ae5
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  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=[];
           if([1,2,4,6].includes(MyChartType)) {
             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])
+              }
             })
           }