mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 10:56:50 +08:00
refactor(components): 优化 RenderMinerU 组件的重试逻辑
- 移除了 visible 判断,使重试逻辑更加简洁
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user