mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
修正错误逻辑
修正算法
This commit is contained in:
parent
56edc1deaf
commit
c9daafd5f7
|
@ -79,13 +79,16 @@ export const useRenderList = (mode: string) => {
|
||||||
if (hiddenInvalidNetwork) {
|
if (hiddenInvalidNetwork) {
|
||||||
let proxys = group.all.filter((item) => {
|
let proxys = group.all.filter((item) => {
|
||||||
if (item.all) {
|
if (item.all) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.history) {
|
if (item.history) {
|
||||||
const history = item.history;
|
const history = item.history;
|
||||||
let min = Math.min(3, history.length);
|
let min = Math.min(3, history.length);
|
||||||
let recentHistory = history.slice(0, min);
|
let recentHistory = history.slice(
|
||||||
|
history.length - min,
|
||||||
|
history.length
|
||||||
|
);
|
||||||
let hasInvalidNetwork =
|
let hasInvalidNetwork =
|
||||||
recentHistory.filter((item) => item.delay == 0).length > 0;
|
recentHistory.filter((item) => item.delay == 0).length > 0;
|
||||||
if (hasInvalidNetwork) {
|
if (hasInvalidNetwork) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user