bug
This commit is contained in:
		@@ -21,8 +21,9 @@
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
  import { VueOkrTree } from 'vue-okr-tree'
 | 
			
		||||
  import 'vue-okr-tree/dist/vue-okr-tree.css'
 | 
			
		||||
  // import { VueOkrTree } from 'vue-okr-tree'
 | 
			
		||||
  import OkrTree from './vue-okr-tree/OkrTree'
 | 
			
		||||
  // import 'vue-okr-tree/dist/vue-okr-tree.css'
 | 
			
		||||
 | 
			
		||||
  export default {
 | 
			
		||||
    name: 'AiGrid',
 | 
			
		||||
@@ -30,7 +31,7 @@
 | 
			
		||||
    props: ['instance'],
 | 
			
		||||
 | 
			
		||||
    components: {
 | 
			
		||||
      VueOkrTree
 | 
			
		||||
      VueOkrTree: OkrTree
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    data () {
 | 
			
		||||
@@ -116,7 +117,7 @@
 | 
			
		||||
            const arr = res.data.filter(v => {
 | 
			
		||||
              return v.parentGirdId === parentGirdId || !v.parentGirdId
 | 
			
		||||
            })
 | 
			
		||||
            this.treeData.map(p => this.addChild(p, arr.map(v => {
 | 
			
		||||
            this.treeData.map(p => this.addChild(p, res.data.map(v => {
 | 
			
		||||
              if (v.id === parentGirdId) {
 | 
			
		||||
                this.defaultExpandedKeys.push(v.id)
 | 
			
		||||
              }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user