|
@@ -225,7 +225,12 @@ export const formulaStringToArray = (text,elemap,formulaMap) => {
|
|
}
|
|
}
|
|
|
|
|
|
let content =contentStack[contentStack.length - 1];
|
|
let content =contentStack[contentStack.length - 1];
|
|
- content.children.push(obj);
|
|
|
|
|
|
+ if(content){
|
|
|
|
+ content.children.push(obj);
|
|
|
|
+ }else{
|
|
|
|
+ //如果没有,那就是在最上层
|
|
|
|
+ resArr.push(obj);
|
|
|
|
+ }
|
|
|
|
|
|
strIndex += eleArr[0].length;//索引移动
|
|
strIndex += eleArr[0].length;//索引移动
|
|
}else if(commaReg.test(nuText)){
|
|
}else if(commaReg.test(nuText)){
|