修改图片压缩规则,优化样式
This commit is contained in:
@@ -118,7 +118,6 @@ onMounted(() => {
|
||||
shadowRoot = container.value.attachShadow({ mode: 'open' })
|
||||
updateContent()
|
||||
autoScale()
|
||||
console.log(props.html)
|
||||
})
|
||||
|
||||
watch(() => props.html, () => {
|
||||
|
||||
@@ -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