Skip to content

Commit

Permalink
Merge branch 'develop-1.9.0' of https://github.com/FederatedAI/FATE-B…
Browse files Browse the repository at this point in the history
…oard into develop-1.9.0
  • Loading branch information
idwenwen committed Aug 24, 2022
2 parents 20b9d72 + 14d19c6 commit be0c73d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions resources-front-end/src/views/job-dashboard/log/Logs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,17 @@ export default {
},
getInstanceIdFromFlow() {
return getInstanceId().then((res) => {
const machines = res.data
const result = []
for (const each of machines) {
result.push(each.instance_id)
for (const [instance_id, instance] of Object.entries(res.data)) {
if (instance.host === window.location.host) {
this.currentInstanceId = instance.instance_id
}
result.push(instance.instance_id)
}
if (!this.currentInstanceId) {
this.currentInstanceId = result[0]
}
this.instanceId = result
this.currentInstanceId = this.instanceId[0]
})
},
initLogSocket() {
Expand Down

0 comments on commit be0c73d

Please sign in to comment.