diff --git a/src/views/proxies/AddView.vue b/src/views/proxies/AddView.vue index 709f8fb..88723c0 100644 --- a/src/views/proxies/AddView.vue +++ b/src/views/proxies/AddView.vue @@ -353,7 +353,17 @@ onMounted(async () => { } if (!rs) return let i = 0 - rs.data.list.forEach((s) => { + const list = rs.data.list + list.sort((a, b) => { + if (a.name < b.name) { + return -1 + } + if (a.name > b.name) { + return 1 + } + return 0 + }) + list.forEach((s) => { // 默认选择第一个节点 if (i === 0) { proxyInfo.value.nodeId = s.id