尝试修复工作节点未找到安装语言问题

This commit is contained in:
marvzhang
2020-03-07 12:15:42 +08:00
parent 2db3193259
commit 963b464b5c
4 changed files with 59 additions and 12 deletions

View File

@@ -150,9 +150,11 @@ export default {
}, 1000)
},
async onInstallAll (langName) {
this.nodeList.map(async n => {
return this.onInstall(n._id, langName)
})
this.nodeList
.filter(n => n.status === 'online')
.forEach(n => {
this.onInstall(n._id, langName)
})
setTimeout(() => {
this.getData()
}, 1000)