feat: 增加 查询下载地址为空

This commit is contained in:
zhangds 2024-05-17 16:04:01 +08:00
parent f1801a336f
commit b8d564da4a
1 changed files with 9 additions and 5 deletions

View File

@ -146,12 +146,16 @@ export default class downloadlist extends React.Component {
handelResponse(
res,
(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)
if (is_no_arr.length === 0) {
clearInterval(getprocess)
// 判断是否 完成
let is_no_arr = response.data.filter((item) => item.process !== 100)
if (is_no_arr.length === 0) {
clearInterval(getprocess)
}
} else {
this.setState({ total: response.total, orderList: [] })
}
},
(err) => {