feat(warning): DNS 污染提示条

This commit is contained in:
Ad-closeNN
2026-04-26 13:35:24 +08:00
parent 1db6584677
commit 8c45610503
3 changed files with 130 additions and 5 deletions
+5 -5
View File
@@ -238,18 +238,18 @@ const isOutdated = entry.data.outdated;
if (diff < hour) {
const minutes = Math.max(1, Math.floor(diff / minute));
return `${minutes} 分钟`;
return `${minutes} 分钟`;
}
if (diff < day) {
return `${Math.floor(diff / hour)} 小时`;
return `${Math.floor(diff / hour)} 小时`;
}
if (diff < month) {
return `${Math.floor(diff / day)} 天`;
return `${Math.floor(diff / day)} 天`;
}
if (diff < year) {
return `${Math.floor(diff / month)} 个月`;
return `${Math.floor(diff / month)} 个月`;
}
return `${Math.floor(diff / year)} 年`;
return `${Math.floor(diff / year)} 年`;
}
function renderUpdatedDistance() {