Skip to content

Commit

Permalink
byzer-org#138 Clicking the refresh button of the Data Catalog will th…
Browse files Browse the repository at this point in the history
…row an error
  • Loading branch information
wangcheng15 committed Mar 18, 2022
1 parent 959b25c commit 15b3788
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/page/Schedules/Dag/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script>
import Vue from 'vue'
import { Component } from 'vue-property-decorator'
import { Graph, Shape, } from '@antv/x6'
import { Graph } from '@antv/x6'
import GraphNode from '../../../components/GraphNode'
import '@antv/x6-vue-shape'
import { DagreLayout } from '@antv/layout'
Expand Down
6 changes: 3 additions & 3 deletions src/page/Workspace/DataCatalog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:class="{'in-refresh': refreshing}"
:icon="'el-ksd-icon-refresh_22'"
:text="$t('refresh')"
:handler="refreshHive"
:handler="refreshTreeNode"
></icon-btn>
</div>
<div class="catalog-wrapper" ref="catalogWrapper" @scroll="scrollTree">
Expand Down Expand Up @@ -131,10 +131,10 @@ export default class DataCataLog extends Vue {
return this.originalWidth + this.nodeScrollWidth - 55
}
async refreshHive () {
async refreshTreeNode () {
this.refreshing = true
await setTimeout(() => {
this.$refs['tableTree'].getNode(this.allDataList[0]).parent.childNodes.forEach(i => {
this.$refs['tableTree'].getNode(this.allDataList[2])?.parent.childNodes.forEach(i => {
this.$refs['tableTree'].remove(i.id)
i.expanded = false
i.loaded = false
Expand Down

0 comments on commit 15b3788

Please sign in to comment.