Procházet zdrojové kódy

fix(report): replaceAll兼容QQ浏览器

lishihao před 4 roky
rodič
revize
5e9854e8ad
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      report/src/core/formulasFun.ts

+ 1 - 1
report/src/core/formulasFun.ts

@@ -55,7 +55,7 @@ export const formulaExec = (runType: string, $CURRENT_TEMPLATE: IRptTpl, $CURREN
                     // console.log(expression);
                     //临时处理
                     if (expression.indexOf(`new Date(`)) {
-                        newExpression= expression.replaceAll(`new Date(`, `new ReportDate(`)
+                        newExpression= replaceAll(`new Date(`, `new ReportDate(`,expression)
                     }
                     eval(newExpression);
                 } catch (ex) {