Add files via upload

This commit is contained in:
✨小透明・宸✨
2019-01-26 21:59:33 +08:00
committed by GitHub
parent 19c89493c0
commit 540ce6e681

View File

@@ -389,7 +389,7 @@
//上传图片
document.getElementById('configAvatar').addEventListener('change', function () {
document.getElementById('avatar').src = window.URL.createObjectURL(this.files[0]);
document.getElementById('avatar').style.backgroundImage = 'url(\"' + window.URL.createObjectURL(this.files[0]) + '\")';
});
document.getElementById('configArticleIcon').addEventListener('change', function () {
document.getElementById('articleIcon').style.backgroundImage = 'url(\"' + window.URL.createObjectURL(this.files[0]) + '\")';