refactor: 调整异常请求时间

This commit is contained in:
wangjiahao 2024-01-02 11:42:51 +08:00
parent 832742586c
commit 58dcc5dfca

View File

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