Update MkImageEffectorDialog.vue
This commit is contained in:
parent
b8e11516ff
commit
854a384fd9
|
@ -133,6 +133,11 @@ onUnmounted(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
|
if (layers.length === 0) {
|
||||||
|
cancel();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
renderer!.render(); // toBlobの直前にレンダリングしないと何故か壊れる
|
renderer!.render(); // toBlobの直前にレンダリングしないと何故か壊れる
|
||||||
canvasEl.value!.toBlob((blob) => {
|
canvasEl.value!.toBlob((blob) => {
|
||||||
emit('ok', new File([blob!], `image-${Date.now()}.png`, { type: 'image/png' }));
|
emit('ok', new File([blob!], `image-${Date.now()}.png`, { type: 'image/png' }));
|
||||||
|
|
Loading…
Reference in New Issue