luolei hace 4 años
padre
commit
133de81684
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      src/components/developKnow/KnowledgeAll.vue

+ 7 - 7
src/components/developKnow/KnowledgeAll.vue

@@ -152,15 +152,15 @@ import api from '@api/knowledgeTree.js';
     methods:{
       getTreeList(){
         api.getlistTree({}).then((res) => {
-          console.log(res.data.data,1111)
           const result = res.data
           const { data } = result
-          return
-          // const item = JSON.parse(JSON.stringify(data))
-          // item.level = 0
-          // item.isExpanded = false
-          // item.nodeList = this.IteraNodeList(item.nodeList, [], 1)
-          // this.list[0] = item
+          
+          const item = JSON.parse(JSON.stringify(data))
+          item.level = 0
+          item.isExpanded = false
+          item.nodeList = this.IteraNodeList(item.nodeList, [], 1)
+          this.list[0] = item
+          console.log(item,1111)
           
           // if(data.code == '0') {
           //   this.message(res.data.msg||'术语关系建立成功','success');