Compare commits

...

2 Commits

Author SHA1 Message Date
0abfb5245a style: Adjust item card height 2023-01-18 15:55:08 +07:00
5467d91085 feat: Items based on category voucher 2023-01-18 15:40:08 +07:00
3 changed files with 4 additions and 2 deletions

View File

@@ -11,9 +11,11 @@
background-color: white;
border: #ccc 1px solid;
width: 100%;
height: 200px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
align-items: center;
margin-bottom: 10px;
cursor: pointer;

View File

@@ -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

View File

@@ -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;