Merge pull request #7484 from dataease/pr@dev@refactor_refresh

Pr@dev@refactor refresh
This commit is contained in:
王嘉豪 2024-01-02 11:51:48 +08:00 committed by GitHub
commit 7151d9db4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -937,10 +937,10 @@ export default {
}).catch(err => {
console.error('err-' + err)
//
if (!this.innerRefreshTimer) {
if (!this.innerRefreshTimer && this.editMode === 'preview') {
setTimeout(() => {
this.getData(this.element.propValue.viewId)
}, 5000)
}, 120000)
}
this.requestStatus = 'error'
if (err.message && err.message.indexOf('timeout') > -1) {