Commit 5aba10ba authored by 武广's avatar 武广

fix: 修改企业客户报错问题

parent f8c96d7c
...@@ -85,8 +85,11 @@ export const customerColumn = options => { ...@@ -85,8 +85,11 @@ export const customerColumn = options => {
align: 'center', align: 'center',
hideInSearch: true, hideInSearch: true,
render(types) { render(types) {
const arr = types.map(meal => mealType[meal]); if (types && types.length && typeof types === 'object') {
return arr.join('/'); const arr = types.map(meal => mealType[meal]);
return arr.join('/');
}
return '-';
}, },
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment