Преглед на файлове

公式配置连续添加多个元素

duy преди 2 години
родител
ревизия
dc52642728
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/formula/edit1.vue

+ 1 - 1
src/views/formula/edit1.vue

@@ -970,7 +970,7 @@ export default {
             }
         }
         let lastEle = this.selectEleFormula[this.selectEleFormula.length-1];
-        if(this.selectEleFormula.length == 0 && lastEle.type == 'Operator' && lastEle.type == 'Brackets' && lastEle.name == '('){ /* 存在运算符 */
+        if(this.selectEleFormula.length == 0 || lastEle.type == 'Operator' || lastEle.type == 'Brackets' || lastEle.name == '('){ /* 存在运算符 */
           this.eleAddFormulaHandle(item);
         } else {
           this.itemList.push(item);