Explorar el Código

后台的空字符串和null值转为'空'

hy hace 6 años
padre
commit
396c3dc7bc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/models/parseChartOption.js

+ 1 - 1
src/models/parseChartOption.js

@@ -107,7 +107,7 @@ function barOption(data, barConfig, themeConfig, styleConfig, drillDown) {
             },
             },
             data: data.xAxis.map(d => {
             data: data.xAxis.map(d => {
                 let gv= xGranularityV;
                 let gv= xGranularityV;
-                if( !d && d === null ) {
+                if( !d ) {
                     return '空';
                     return '空';
                 }
                 }
                 let xv = d;
                 let xv = d;