SERVICE AND PROCESS 页面中serce下拉框的回显问题

This commit is contained in:
任珮宇 2023-12-21 15:50:40 +08:00
parent 07afefae43
commit a88b3f476a

View File

@ -376,7 +376,8 @@ export default {
}
})
let serverId = this.$route.query.serverId
this.queryParams.server = serverId || res.result[0].hostId
this.queryParams.server = res.result.find((item) => item.sourceId === serverId).hostId || res.result[0].hostId
this.getRankProcesses()
} else {
this.$message.warning('This operation fails. Contact your system administrator')