Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 15dcb81

Browse files
committed
新增 自动选择远程守护进程
1 parent 42fd486 commit 15dcb81

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/app/views/Instances.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,15 @@ export default {
221221
if (service.available) {
222222
this.remoteList.push({
223223
value: service.uuid,
224-
label: `${ip} ${remarks}`
224+
label: `${ip} ${remarks}`,
225+
available: true
225226
});
226227
this.availableService.push(service);
227228
} else {
228229
this.remoteList.push({
229230
value: service.uuid,
230-
label: `${ip} ${remarks} (离线)`
231+
label: `${ip} ${remarks} (离线)`,
232+
available: false
231233
});
232234
this.unavailableService.push(service);
233235
}
@@ -242,6 +244,11 @@ export default {
242244
return this.remoteSelectHandle();
243245
}
244246
});
247+
} else {
248+
this.remoteList.forEach((v) => {
249+
if (v.available) this.currentRemoteUuid = v.value;
250+
});
251+
this.remoteSelectHandle();
245252
}
246253
},
247254
// 获取分布式服务具体实例列表

0 commit comments

Comments
 (0)