Commit 720164b1 by liuyong

修改左侧菜单加载

1 parent 89a756b8
Showing with 3 additions and 1 deletions
......@@ -231,7 +231,7 @@ App = function(editor, container, lightbox)
if(dicys.length > 0) {
dicys.forEach(item2 => {
console.log(item2.fieldName)
console.log(item2.chineseName)
// console.log(item2.chineseName)
// svgTag.setAttribute(encodeURIComponent(item2.fieldName), encodeURIComponent(item2.chineseName));
// svgTag.setAttribute('attr'+item2.fieldName, 'attr'+item2.chineseName);
......@@ -255,6 +255,7 @@ App = function(editor, container, lightbox)
contentType: "application/json",
success: result => {
result.data.forEach(item => {
if(item.eleDtos) {
if(item.eleDtos.length > 0) {
const libraryName = item.arciBelongName;
let images = [];
......@@ -273,6 +274,7 @@ App = function(editor, container, lightbox)
})
this.saveLibrary(libraryName, images, null, 'ajax', undefined, undefined, undefined);
}
}
})
},
error: error => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!