feat: Items based on category voucher
This commit is contained in:
parent
1206c4f013
commit
5467d91085
|
@ -14,6 +14,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
cursor: pointer;
|
||||
|
|
|
@ -5,7 +5,7 @@ export class ItemStore extends BaseStore {
|
|||
@observable listImages = [];
|
||||
constructor(context) {
|
||||
super(context);
|
||||
this.url = "items";
|
||||
this.url = "/categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items";
|
||||
}
|
||||
|
||||
@action
|
||||
|
|
|
@ -26,7 +26,7 @@ export default class Vouchers {
|
|||
getList(){
|
||||
console.log('res');
|
||||
this.isLoading = true;
|
||||
return this.http.get("items")
|
||||
return this.http.get("categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items")
|
||||
.then(res => {
|
||||
this.list = res.data;
|
||||
this.isLoading = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user