边缘节点显示菜单bug修复

This commit is contained in:
jhnine 2023-02-15 17:32:08 +08:00
parent 4e093f27bc
commit a39dc28789
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ const actions = {
commit('SET_CLUSTER', data) commit('SET_CLUSTER', data)
}, },
getClusterList({ commit }, data) { getClusterList({ commit }, data) {
return getClusterList().then(response => { return getClusterList({ pageNum: 1, pageSize: 999 }).then(response => {
const List = response.data.list.filter(e => e.cluster_name === state.clusterName) const List = response.data.list.filter(e => e.cluster_name === state.clusterName)
const hasEdge = List.length === 1 ? List[0].edge : false const hasEdge = List.length === 1 ? List[0].edge : false
commit('SET_EDGE', hasEdge) commit('SET_EDGE', hasEdge)