mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 17:10:20 +00:00
fix: remove platform when server is offline
This commit is contained in:
1 parent
fede9b0bd7
commit
1a1ceb4665
1 file changed
+1
-1
@@ -128,7 +128,7 @@ export default function Servers() {
|
||||
const serverAInfo = formatNezhaInfo(nezhaWsData.now, a)
|
||||
const serverBInfo = formatNezhaInfo(nezhaWsData.now, b)
|
||||
|
||||
if (sortType !== "name" && sortType !== "system") {
|
||||
if (sortType !== "name") {
|
||||
// 仅在非 "name" 排序时,先按在线状态排序
|
||||
if (!serverAInfo.online && serverBInfo.online) return 1
|
||||
if (serverAInfo.online && !serverBInfo.online) return -1
|
||||
|
||||
Reference in new issue
Block a user