feat: change query case

This commit is contained in:
caturbgs 2021-12-17 00:02:00 +07:00
parent 20df9934a8
commit 5d765bc763
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export class Product {
async getDataSubCategories() {
try {
const response = await http.get(`/product/subCategory?page=${this.pageSubCategories}&pageSize=${this.pageSizeSubCategories}`);
const response = await http.get(`/product/sub-category?page=${this.pageSubCategories}&pageSize=${this.pageSizeSubCategories}`);
this.dataSubCategories = response.body.data.map((item, idx) => {
item.key = idx;
return item

View File

@ -32,7 +32,7 @@ export class Transaction {
async getData() {
try {
const response = await http.get(`/product/by-categories-all?subCategory=${this.filterSubCategory}&page=${this.page}&pageSize=${this.pageSize}`);
const response = await http.get(`/product/by-categories-all?sub-category=${this.filterSubCategory}&page=${this.page}&pageSize=${this.pageSize}`);
this.data = response.body.data ?? []
this.total_data = response.body.total_data ?? 0
} catch (e) {