Fixed product service for rowexpand datatable demo
parent
17e7b6e7c0
commit
48213f4d0e
|
@ -12,13 +12,13 @@ export default class ProductService {
|
||||||
}
|
}
|
||||||
|
|
||||||
getProducts() {
|
getProducts() {
|
||||||
return fetch(this.contextPath + 'demo/data/products-small.json')
|
return fetch(this.contextPath + 'demo/data/products.json')
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then((d) => d.data);
|
.then((d) => d.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
getProductsWithOrdersSmall() {
|
getProductsWithOrdersSmall() {
|
||||||
return fetch(this.contextPath + 'demo/data/products-small.json')
|
return fetch(this.contextPath + 'demo/data/products-orders-small.json')
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then((d) => d.data);
|
.then((d) => d.data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue