refactor: 视图刷新优化,解决部分出错视图停止刷新问题

This commit is contained in:
wangjiahao 2023-12-29 14:57:53 +08:00
parent 38a14a0ae8
commit 3173d4f65d

View File

@ -827,6 +827,9 @@ export default {
}
},
getData(id, cache = true, dataBroadcast = false) {
if (this.requestStatus === 'waiting') {
return
}
if (id) {
const filters = this.filter.filter
const group = this.groupRequiredInvalid(filters)
@ -934,7 +937,7 @@ export default {
}).catch(err => {
console.error('err-' + err)
//
if (!this.innerRefreshTimer ) {
if (!this.innerRefreshTimer) {
setTimeout(() => {
this.getData(this.element.propValue.viewId)
}, 5000)