Skip to content

Commit ab35e28

Browse files
Cleaning
1 parent f884158 commit ab35e28

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

src/playground/configs/templates/ClientTable.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,8 @@ function fetchClientData(drilldown = null) {
478478
if (drilldown?.level === 1) {
479479
user.child = {
480480
...user.child,
481-
...{
482-
items: json.posts,
483-
loading: false,
484-
},
481+
items: json.posts,
482+
loading: false,
485483
};
486484
return;
487485
}
@@ -490,10 +488,8 @@ function fetchClientData(drilldown = null) {
490488
if (drilldown?.level === 2) {
491489
post.child = {
492490
...post.child,
493-
...{
494-
items: json.comments,
495-
loading: false,
496-
},
491+
items: json.comments,
492+
loading: false,
497493
};
498494
}
499495
});

src/playground/configs/templates/ServerTable.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,11 @@ function getPostComments(drilldown = null, updateCurrentLevel = false) {
558558
559559
post.child = {
560560
...post.child,
561-
...{
562-
items: comments,
563-
itemsLength: pagination.itemsLength,
564-
limit: post.child.server ? drilldown.limit : tableDefaults.itemsPerPage,
565-
loading: false,
566-
page: pagination.page,
567-
},
561+
items: comments,
562+
itemsLength: pagination.itemsLength,
563+
limit: post.child.server ? drilldown.limit : tableDefaults.itemsPerPage,
564+
loading: false,
565+
page: pagination.page,
568566
};
569567
});
570568
}

0 commit comments

Comments
 (0)