修改图片压缩规则,优化样式
This commit is contained in:
@@ -108,6 +108,7 @@ function initEditor() {
|
||||
input.addEventListener('change', async (e) => {
|
||||
let file = e.target.files[0];
|
||||
file = await compressImage(file);
|
||||
console.log(file.size / 1024)
|
||||
const reader = new FileReader();
|
||||
reader.onload = () => {
|
||||
const id = 'blobid' + (new Date()).getTime();
|
||||
|
||||
Reference in New Issue
Block a user