Commit ff2d1983 authored by 前端-许佳敏's avatar 前端-许佳敏

fix:修复在外部工作流无数据时页面为空

parent 09bf22ac
......@@ -19,7 +19,8 @@
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"start:cross": "cross-env SITE_ID=352 yarn start",
"start:url": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-all.wg.shushangyun.com yarn start"
"start:url": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-all.wg.shushangyun.com yarn start",
"start:10": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.10:8100 yarn start"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
......
......@@ -24,6 +24,9 @@ export const changeRouterTitleByStatus = () => {
// 找到最后一个可用的工作流状态的索引
export const findLastIndexFlowState = (data: any[]) => {
if (!Array.isArray(data)) {
return 0
}
for (let item = 0; item < data.length; item++) {
if (data[item].isExecute === 0) {
return item > 0 ? --item : 0
......
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