联合黑名单支持

This commit is contained in:
远野千束 2024-05-09 00:14:14 +08:00
parent 5913528d32
commit b8375013a3

View File

@ -123,12 +123,12 @@
mottoAuthor.style.textAlign = 'right'; mottoAuthor.style.textAlign = 'right';
mottoDiv.appendChild(mottoAuthor); mottoDiv.appendChild(mottoAuthor);
function getPieUsage(data){ function getPieUsage(data) {
let total = 0 let total = 0
let used = 0 let used = 0
data.forEach(item => { data.forEach(item => {
total += item.value total += item.value
if(item.name === 'FREE'){ if (item.name === 'FREE') {
used += item.value used += item.value
} }
}) })
@ -191,7 +191,7 @@
function getBarOption(title, percent) { function getBarOption(title, percent) {
let fillet = 0 let fillet = 0
if (percent < 5){ if (percent < 5) {
fillet = 50 fillet = 50
} }
// data为百分比最大值为100 // data为百分比最大值为100