提交 55a7dc42 authored 作者: 钟是志's avatar 钟是志

二进制修改

上级 2e15ad68
...@@ -102,6 +102,9 @@ export default class Index extends React.Component { ...@@ -102,6 +102,9 @@ export default class Index extends React.Component {
getColumn = () => { getColumn = () => {
const { workId } = this.state; const { workId } = this.state;
service.getColumns(workId).then((response) => { service.getColumns(workId).then((response) => {
if(!response || !Array.isArray(response)){
response = [];
}
response = response.filter((x) => { response = response.filter((x) => {
return x.title !== '流程进度'; return x.title !== '流程进度';
}); });
......
...@@ -171,6 +171,8 @@ const getSearchCondition = async (id, appId = undefined) => { ...@@ -171,6 +171,8 @@ const getSearchCondition = async (id, appId = undefined) => {
return res.filter((x) => { return res.filter((x) => {
return x.isShowQuery !== false && x.isHidden === false; return x.isShowQuery !== false && x.isHidden === false;
}); });
}else{
return [];
} }
}); });
// console.log(JSON.stringify(searchHeaders)); // console.log(JSON.stringify(searchHeaders));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论