feat: 增加 查询下载地址为空
This commit is contained in:
parent
f1801a336f
commit
b8d564da4a
|
@ -146,6 +146,7 @@ export default class downloadlist extends React.Component {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
(response, msg) => {
|
(response, msg) => {
|
||||||
|
if (response.data) {
|
||||||
this.setState({ total: response.total, orderList: response.data })
|
this.setState({ total: response.total, orderList: response.data })
|
||||||
|
|
||||||
// 判断是否 完成
|
// 判断是否 完成
|
||||||
|
@ -153,6 +154,9 @@ export default class downloadlist extends React.Component {
|
||||||
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) => {
|
||||||
Notify.error(err)
|
Notify.error(err)
|
||||||
|
|
Loading…
Reference in New Issue