This is an automated email from the ASF dual-hosted git repository.
lauraxia pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/kylin5 by this push:
new 8118afb449 KYLIN-5683 tree list load more columns issue
8118afb449 is described below
commit 8118afb44988b9bda4723689997e6e045c1053be
Author: Qian Xia <[email protected]>
AuthorDate: Wed Aug 9 17:56:37 2023 +0800
KYLIN-5683 tree list load more columns issue
---
kystudio/src/components/common/TreeList/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kystudio/src/components/common/TreeList/index.vue
b/kystudio/src/components/common/TreeList/index.vue
index ba4ee86d3a..3bb2729048 100644
--- a/kystudio/src/components/common/TreeList/index.vue
+++ b/kystudio/src/components/common/TreeList/index.vue
@@ -269,7 +269,7 @@ export default class TreeList extends Vue {
case 'isMore':
if (data.text === 'columns') {
data.parent.child_options.page_offset += 1
- 'childContent' in data.parent && (data.parent.children =
data.parent.childContent.slice(0, data.parent.child_options.page_offset *
data.parent.child_options.page_size - 1))
+ 'childContent' in data.parent && (data.parent.children =
data.parent.childContent.slice(0, data.parent.child_options.page_offset *
data.parent.child_options.page_size))
data.parent.isMore = data.parent.child_options.page_offset *
data.parent.child_options.page_size < data.parent.childContent.length
} else if (!data.parent.isLoading) {
data.parent.isLoading = true