Skip to content

Commit

Permalink
fix(cluster settings): correct node list
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed Nov 18, 2024
1 parent f678637 commit 8ebafd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/api/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import http from '@/common/http'
// 加载节点
export const loadNodes = async () => {
const res = await http.get('/nodes')
const nodes = res.map(($) => $.node)
return nodes
return res
}

// 加载集群信息
Expand Down
2 changes: 1 addition & 1 deletion src/views/Settings/ClusterSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default {
getNodes(currentNodes) {
const runningReg = /running/i
return currentNodes.map((item) => {
return { name: item.node, isRunning: runningReg.test(item.status) }
return { name: item.node, isRunning: runningReg.test(item.node_status) }
})
},
},
Expand Down

0 comments on commit 8ebafd3

Please sign in to comment.