feat: 增加 查询下载地址为空
This commit is contained in:
parent
f1801a336f
commit
b8d564da4a
|
@ -146,12 +146,16 @@ export default class downloadlist extends React.Component {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
(response, msg) => {
|
(response, msg) => {
|
||||||
this.setState({ total: response.total, orderList: response.data })
|
if (response.data) {
|
||||||
|
this.setState({ total: response.total, orderList: response.data })
|
||||||
|
|
||||||
// 判断是否 完成
|
// 判断是否 完成
|
||||||
let is_no_arr = response.data.filter((item) => item.process !== 100)
|
let is_no_arr = response.data.filter((item) => item.process !== 100)
|
||||||
if (is_no_arr.length === 0) {
|
if (is_no_arr.length === 0) {
|
||||||
clearInterval(getprocess)
|
clearInterval(getprocess)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.setState({ total: response.total, orderList: [] })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(err) => {
|
(err) => {
|
||||||
|
|
Loading…
Reference in New Issue