perf: 打开office文件的加载动画

This commit is contained in:
jmal 2022-08-18 09:27:31 +08:00
parent 1f0bab5347
commit 1cb13b6ff1

View File

@ -98,13 +98,13 @@ export default {
}) })
this.checkReadOnly(this.file.userId) this.checkReadOnly(this.file.userId)
// 3秒后还没加载出来视为加载失败 // 6秒后还没加载出来视为加载失败
let that = this let that = this
this.delayClosing = setTimeout(function () { this.delayClosing = setTimeout(function () {
if (!that.readyShow) { if (!that.readyShow) {
that.loadFileFaild() that.loadFileFaild()
} }
},3000) },6000)
} }
} }
}, },