Perbaikan Project PPOB

This commit is contained in:
2022-01-11 17:57:01 +07:00
parent a9d0d199d1
commit 64b33c2d6b
4 changed files with 129 additions and 70 deletions

View File

@@ -8,7 +8,8 @@ export class Authentication {
isLoginLoading = false;
ctx;
profileData = {};
dataProfit=[]
dataProfit=[];
listImage=[];
constructor(ctx) {
this.ctx = ctx;
@@ -57,6 +58,7 @@ export class Authentication {
const response = await http.get(`/auth/profile/${id}`);
console.log(response)
this.dataProfit = response.body ?? [];
this.listImage = this.dataProfit.userDetail ? JSON.parse(this.dataProfit.userDetail?.image_store) : [];
this.total_data = response?.body?.count ?? 0;
} catch (e) {
console.error(e);