refactor: 调整异常请求时间
This commit is contained in:
parent
832742586c
commit
58dcc5dfca
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user