浏览代码

修复插入行/列报错

yujinwen 2 周之前
父节点
当前提交
829cf290dd
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/global/formula.js

+ 3 - 0
src/global/formula.js

@@ -2113,6 +2113,9 @@ const luckysheetformula = {
     },
     functionStrChange: function (txt, type, rc, orient, stindex, step) {
         let _this = this;
+        if (typeof txt !== "string") {
+            return txt; // 保持原内容,不做处理
+        }
 
         if (_this.operatorjson == null) {
             let arr = _this.operator.split("|"),