Config Page

This commit is contained in:
2021-12-23 12:05:30 +07:00
parent ce2d2e1072
commit 4ba8f07f93
3 changed files with 9 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ export class Membership {
pageSize = 10
data = [];
total_data = 0
dataDetail=[]
constructor(ctx) {
this.ctx = ctx;
@@ -32,7 +33,7 @@ export class Membership {
try {
const response = await http.get(`/users/`+id);
console.log(response,'Data Detail')
this.data = response.body.data
this.dataDetail = response.body.data
this.total_data = response?.body?.count ?? 0
} catch (e) {
console.error(e);