refactor(components): 优化 RenderMinerU 组件的重试逻辑

- 移除了 visible 判断,使重试逻辑更加简洁
This commit is contained in:
陈昱达
2025-04-23 15:57:43 +08:00
parent 79ce5ff1f1
commit ee1666095f

View File

@@ -64,6 +64,7 @@ export default {
name: 'index',
data() {
return {
endEmit: false,
tab: '0',
mdPges: 0,
tableIdCounter: 0,
@@ -543,11 +544,9 @@ ${text}`
switch (mineruStatus) {
case 0:
case '0':
if (!this.visible) {
setTimeout(() => {
this.getMinerUStatus()
}, 5000)
}
setTimeout(() => {
this.getMinerUStatus()
}, 5000)
break
case 1:
case '1':
@@ -569,6 +568,7 @@ ${text}`
},
// 重试方法
retryMiner() {
this.endEmit = true
minerURetry({ documentId: this.documentId })
.then(res => {
this.$message({