From 2aa74ba905b065a9d20e774ff433a7b1267dec53 Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 14 Apr 2023 18:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E6=9C=8D=E5=8A=A1=E5=99=A8)?= =?UTF-8?q?:=20=E8=B7=AF=E7=94=B1dispatch=E9=A1=BA=E5=BA=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/dispatcher.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/pubUtils/dispatcher.ts b/shared/pubUtils/dispatcher.ts index c636a741a..1a41a070d 100644 --- a/shared/pubUtils/dispatcher.ts +++ b/shared/pubUtils/dispatcher.ts @@ -30,6 +30,7 @@ export function dispatch(uid: string, connectors: ServerInfo[], serverType: stri // connectors = connectors.filter(obj => { return obj.id == 'activity-server-1' }) // } // } + connectors.sort((a, b) => a.id > b.id? 1: -1); if (serverType) { let roleRouteData = roleRoute.get(uid);