MaiXinRong hace 4 meses
padre
commit
d6d63ae3fd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/public/js/phase_pay_detail.js

+ 1 - 1
app/public/js/phase_pay_detail.js

@@ -158,7 +158,7 @@ $(document).ready(() => {
             }
             }
             trans2NodeExpr(expr, payTree) {
             trans2NodeExpr(expr, payTree) {
                 const orderParam = [...expr.matchAll(this.orderReg)];
                 const orderParam = [...expr.matchAll(this.orderReg)];
-                if (!orderParam) return expr;
+                if (!orderParam || orderParam.length === 0) return expr;
 
 
                 orderParam.forEach(op => {
                 orderParam.forEach(op => {
                     op.matchLength = op[0].length;
                     op.matchLength = op[0].length;