瀏覽代碼

自动解析Bug

chenshilong 4 年之前
父節點
當前提交
87fc60b507
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
         }