orderiom-api-package 0.4.64 → 0.4.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/modules/order.js +1 -0
- package/src/modules/product.js +4 -7
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -664,6 +664,7 @@ const actions = {
|
|
|
664
664
|
},
|
|
665
665
|
})
|
|
666
666
|
.then((res) => {
|
|
667
|
+
if(!res.data.data.order.is_online_payment) delete res.data.data.order.payment_id;
|
|
667
668
|
commit("setproductOrder", res.data.data.products);
|
|
668
669
|
commit("settotalPriceOrder", res.data.data.order.total_price);
|
|
669
670
|
commit("setorder", res.data.data.order);
|
package/src/modules/product.js
CHANGED
|
@@ -36,9 +36,6 @@ const getters = {
|
|
|
36
36
|
fetchingProducts(state){
|
|
37
37
|
return !!state.fetchingProducts;
|
|
38
38
|
},
|
|
39
|
-
categoriesFetchedOnce(){
|
|
40
|
-
return !!state.categoriesFetchedOnce;
|
|
41
|
-
},
|
|
42
39
|
subCategories(state){
|
|
43
40
|
if(!state.products) return []
|
|
44
41
|
if(state.showPinnedProducts) {
|
|
@@ -318,14 +315,14 @@ const actions = {
|
|
|
318
315
|
}
|
|
319
316
|
}).catch(
|
|
320
317
|
commonErrorCallback()
|
|
321
|
-
)
|
|
318
|
+
).finally(() => {
|
|
319
|
+
commit('setCategoriesFetchedOnce');
|
|
320
|
+
});
|
|
322
321
|
|
|
323
322
|
return res
|
|
324
323
|
}).catch(
|
|
325
324
|
commonErrorCallback()
|
|
326
|
-
)
|
|
327
|
-
commit('setCategoriesFetchedOnce');
|
|
328
|
-
});
|
|
325
|
+
);
|
|
329
326
|
},
|
|
330
327
|
getProducts({ commit, state, rootState }, data) {
|
|
331
328
|
commit("setSelectedCategory", data.category);
|