迁移头像选择点击事件

This commit is contained in:
2026-04-25 10:40:01 +08:00
parent 5938976360
commit ef434f0703
2 changed files with 29 additions and 1 deletions
@@ -292,8 +292,8 @@
img.className = 'avatar-option';
img.title = file;
img.dataset.file = file;
img.dataset.avatarFile = file;
img.onerror = () => img.style.display = 'none';
img.onclick = () => selectAvatar(file, img);
grid.appendChild(img);
});
} catch (e) {