orderiom-api-package 0.4.63 → 0.4.65
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 +1 -4
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) {
|
|
@@ -163,7 +160,7 @@ const getters = {
|
|
|
163
160
|
}
|
|
164
161
|
const mutations = {
|
|
165
162
|
setCategoriesFetchedOnce(state){
|
|
166
|
-
state.
|
|
163
|
+
state.categoriesFetchedOnce = true;
|
|
167
164
|
},
|
|
168
165
|
setFetchingProducts(state, isFetching){
|
|
169
166
|
state.fetchingProducts = isFetching;
|