let params = {};
search ? (params.q = search) : (params = {});
params.page_no: page,
params.page_size: 12,
this.isLoading = true;
this.$apiSDK.catalog
.getStores(params)
.then(({ items }) => {
this.stores = items || [];
this.noItem = !this.stores.length;
this.isLoading = false;
})
.catch((ex) => {
this.isLoading = false;
});
},
Your .catch is just swallowing the error. Log it, and you will get a clue to what is wrong
Обсуждают сегодня