perf: 邮件附件预览

dev/ckeditor
Lei OT 4 months ago
parent c51012f88e
commit 63ec5c0a28

@ -366,7 +366,7 @@ const NewEmail = ({ ...props }) => {
resolve(e.target.result)
return
}
var win = window.open('', '_blank')
var win = window.open('', file.uid, 'width=1000,height=800,left=20,top=20')
win.document.body.style.margin = '0'
if (file.type.startsWith('image/')) {
win.document.write("<img src='" + e.target.result + '\' style="max-width: 100%;" />')

Loading…
Cancel
Save