feat: CPU 型号自动识别 + 同级对比动态标记;清理无用依赖

This commit is contained in:
personal82555 committed 2026-10-17 21:58:30 +08:00
1 parent 3ab8487db3
commit 62bf2e7e30
3 files changed
+45 -17

No files matched your search

+3 -3
View File
@@ -654,12 +654,12 @@ function updateCPU(data) {
}
// Comparison chart
if (d.compare) {
const your = d.compare.find(c => c.name.includes('9100T'));
const myScore = your ? your.score : d.bench ? d.bench.passmark_multi : 5500;
const your = d.compare.find(c => c.name.includes('←你'));
const myScore = your ? your.score : (d.bench ? d.bench.passmark_multi : 5500);
const maxScore = Math.max(...d.compare.map(c => c.score), 1);
document.getElementById('compareChart').innerHTML = d.compare.map(c => {
const pct = Math.round(c.score / maxScore * 100);
const isMe = c.name.includes('9100T');
const isMe = c.name.includes('←你');
const barColor = isMe ? 'var(--accent)' : 'var(--card-border)';
return `<div style="display:flex;align-items:center;gap:8px;margin-bottom:3px">
<span style="width:120px;font-size:11px;text-align:right;color:${isMe?'var(--accent)':'var(--dim)'}">${c.name}</span>