orderiom-api-package 0.3.59 → 0.4.1
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/product.js +13 -0
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -351,6 +351,19 @@ const actions = {
|
|
|
351
351
|
}
|
|
352
352
|
})
|
|
353
353
|
},
|
|
354
|
+
fetchMostSelling({ commit }, data) {
|
|
355
|
+
return $http.get('api/restaurant/most-selling', {
|
|
356
|
+
params: data
|
|
357
|
+
}).then((res) => {
|
|
358
|
+
return {
|
|
359
|
+
type: 'success',
|
|
360
|
+
message: '',
|
|
361
|
+
data: res.data
|
|
362
|
+
}
|
|
363
|
+
}).catch(
|
|
364
|
+
commonErrorCallback()
|
|
365
|
+
);
|
|
366
|
+
},
|
|
354
367
|
};
|
|
355
368
|
|
|
356
369
|
export default {
|