迁移头像选择点击事件
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user