|
@@ -57,14 +57,14 @@ const actions = {
|
|
|
},
|
|
|
// 获取门店列表
|
|
|
async fetchOutletList ({ commit }) {
|
|
|
- const { code, data } = await fetch('/api/admin/v1/bar/list?page=1&page_size=10000', {}, 'get')
|
|
|
+ const { code, data } = await fetch('/api/admin/v1/bar/list?page=1&page_size=10000&bar_status=1', {}, 'get')
|
|
|
if (code === 200) {
|
|
|
commit('SET_OUTLETLIST', data.list)
|
|
|
}
|
|
|
},
|
|
|
// 获取商品分类列表
|
|
|
async fetchCategory ({ commit }) {
|
|
|
- const { code, data } = await fetch('/v1/bar/product/category/list?page=1&page_size=10000', {}, 'get')
|
|
|
+ const { code, data } = await fetch('/v1/bar/product/category/list?page=1&page_size=10000&category_status=1', {}, 'get')
|
|
|
if (code === 200) {
|
|
|
commit('SET_CATEGORYARR', data.list)
|
|
|
}
|