Perbaikan Menu Produk

This commit is contained in:
2022-01-06 18:38:01 +07:00
parent ac78d8ab0b
commit aed34857ee
3 changed files with 18 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ export class Product {
pageSize = 10
data = [];
total_data = 0;
total_data_partner=0;
filterSupplier = null;
filterSubCategory = null;
visibleModalProduct = false;
@@ -101,6 +102,7 @@ export class Product {
const response = await http.get(`/product/by-categories?page=${this.pageProductPartner}&pageSize=10&sub-category=${id}`);
console.log(response)
this.dataProductPartner = response.body.data
this.total_data_partner= response?.body?.count ?? 0
} catch (e) {
console.error(e);
}