Skip to content

Commit

Permalink
fix: remove platform when server is offline
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 24, 2024
1 parent fede9b0 commit 1a1ceb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a1ceb4

Please sign in to comment.