Ver código fonte

自动解析Bug

chenshilong 4 anos atrás
pai
commit
87fc60b507
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      web/building_saas/main/js/models/calc_program.js

+ 1 - 1
web/building_saas/main/js/models/calc_program.js

@@ -2078,7 +2078,7 @@ class CalcProgram {
         item.dispExprUser = analyzer.getDispExprUser(item.dispExpr, lc);
         if (item.expression == "HJ") item.compiledExpr = "$CE.HJ()";
         else item.compiledExpr = analyzer.getCompiledExpr(item.expression, lc);
-        if (item.statement === '') {
+        if ((item.statement == undefined) || (item.statement == '')) {
             item.statement = analyzer.getStatement(item.expression, template);
         }