mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: remove platform when server is offline
This commit is contained in:
parent
fede9b0bd7
commit
1a1ceb4665
@ -128,7 +128,7 @@ export default function Servers() {
|
|||||||
const serverAInfo = formatNezhaInfo(nezhaWsData.now, a)
|
const serverAInfo = formatNezhaInfo(nezhaWsData.now, a)
|
||||||
const serverBInfo = formatNezhaInfo(nezhaWsData.now, b)
|
const serverBInfo = formatNezhaInfo(nezhaWsData.now, b)
|
||||||
|
|
||||||
if (sortType !== "name" && sortType !== "system") {
|
if (sortType !== "name") {
|
||||||
// 仅在非 "name" 排序时,先按在线状态排序
|
// 仅在非 "name" 排序时,先按在线状态排序
|
||||||
if (!serverAInfo.online && serverBInfo.online) return 1
|
if (!serverAInfo.online && serverBInfo.online) return 1
|
||||||
if (serverAInfo.online && !serverBInfo.online) return -1
|
if (serverAInfo.online && !serverBInfo.online) return -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user