diff --git a/src/pages/repository/source/node-select.vue b/src/pages/repository/source/node-select.vue index 5171250e081f16f278891d85e043276b5dd3ce54..a217df56a5377720f155c2aa3625313f25868170 100644 --- a/src/pages/repository/source/node-select.vue +++ b/src/pages/repository/source/node-select.vue @@ -39,5 +39,20 @@ export default { created() { this.getNodeList() }, + methods: { + getNodeList() { + getNodeList().then(res => { + if (res.code === 200) { + res.data.forEach(item => { + getNodeStatus(item.id).then(statusRes => { + if (statusRes.code === 200) { + this.nodeList.push(item) + } + }) + }) + } + }) + }, + } } \ No newline at end of file