Perbaikan Project PPOB
This commit is contained in:
@@ -8,6 +8,7 @@ export class Authentication {
|
||||
isLoginLoading = false;
|
||||
ctx;
|
||||
profileData = {};
|
||||
dataProfit=[]
|
||||
|
||||
constructor(ctx) {
|
||||
this.ctx = ctx;
|
||||
@@ -51,6 +52,17 @@ export class Authentication {
|
||||
}
|
||||
}
|
||||
|
||||
async getProfit(id) {
|
||||
try {
|
||||
const response = await http.get(`/auth/profile/${id}`);
|
||||
console.log(response)
|
||||
this.dataProfit = response.body ?? [];
|
||||
this.total_data = response?.body?.count ?? 0;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
async getProfile() {
|
||||
try {
|
||||
const response = await http.get('/auth/profile');
|
||||
|
||||
@@ -40,6 +40,7 @@ export class Transaction {
|
||||
dataTransactionB2B = [];
|
||||
dataTransactionPartner = [];
|
||||
|
||||
|
||||
//filter
|
||||
visibleModalFilterTransaction = false;
|
||||
filterStart = null;
|
||||
@@ -51,6 +52,7 @@ export class Transaction {
|
||||
makeAutoObservable(this);
|
||||
}
|
||||
|
||||
|
||||
async getData() {
|
||||
try {
|
||||
const response = await http.get(
|
||||
|
||||
Reference in New Issue
Block a user