浏览代码

fix show graph

allen 2 年之前
父节点
当前提交
6d09ff4c90
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/views/knowledge/common/chart.vue
  2. 1 1
      src/views/knowledge/statistical/entityClassView.vue

+ 1 - 1
src/views/knowledge/common/chart.vue

@@ -335,7 +335,7 @@ export default {
 		 * 画zoomchart
 		 * */
 		drawChart(root, nodes, links) {
-			console.log(root, nodes, links)
+			console.log('drawChart',root, nodes, links)
 			const vm = this
 
 			g_root = root

+ 1 - 1
src/views/knowledge/statistical/entityClassView.vue

@@ -273,7 +273,7 @@
           })
           this.checkedRelClsNameList.push(name)
         }
-        links = links.concat(resp[1])
+        links = links.concat(resp[1].data)
         this.allEntClassCache = resp[0]
         this.filLinks = this.allLinksCache = links