orderiom-api-package 0.4.57 → 0.4.58
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 +6 -1
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -845,7 +845,12 @@ const actions = {
|
|
|
845
845
|
duration: data.duration || undefined,
|
|
846
846
|
restaurantId: data.restaurantId,
|
|
847
847
|
}).then(res => {
|
|
848
|
-
|
|
848
|
+
if(data.getBasket === undefined || !!data.getBasket){
|
|
849
|
+
dispatch("product/getBasket", data.restaurantId, {root: true});
|
|
850
|
+
}else{
|
|
851
|
+
commit('product/setDeliveryTime', delivery_time + ':00');
|
|
852
|
+
}
|
|
853
|
+
|
|
849
854
|
return res;
|
|
850
855
|
}).catch(error => {
|
|
851
856
|
const status = error.response ? error.response.status : null;
|