This commit is contained in:
huangdeliang
2020-12-29 10:07:19 +08:00
parent fa5264b908
commit eeaa3d36e9
15 changed files with 952 additions and 18 deletions

View File

@ -2,10 +2,15 @@ import request from '@/utils/request'
// 查询食材列表
export function listIngredient(query) {
const {recIds, notRecIds} = query;
return request({
url: '/custom/ingredient/list',
method: 'get',
params: query
method: 'post',
data: {
...query,
recIds: recIds && recIds.length ? recIds : null,
notRecIds: notRecIds && notRecIds.length ? notRecIds : null,
}
})
}