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

This commit is contained in:
wangjiahao 2023-12-29 14:36:56 +08:00
parent 1a97e90cf8
commit 38a14a0ae8

View File

@ -933,6 +933,12 @@ export default {
return true
}).catch(err => {
console.error('err-' + err)
//
if (!this.innerRefreshTimer ) {
setTimeout(() => {
this.getData(this.element.propValue.viewId)
}, 5000)
}
this.requestStatus = 'error'
if (err.message && err.message.indexOf('timeout') > -1) {
this.message = this.$t('panel.timeout_refresh')