只加载在线节点数据

This commit is contained in:
marvzhang
2020-03-10 20:42:05 +08:00
parent 1e9eb8cf12
commit afe1eedecc

View File

@@ -128,6 +128,7 @@ export default {
async getData () {
for (let i = 0; i < this.nodeList.length; i++) {
const n = this.nodeList[i]
if (n.status !== 'online') continue
const res = await this.$request.get(`/nodes/${n._id}/langs`)
res.data.data.forEach(l => {
const key = n._id + '|' + l.executable_name