Update MkImageEffectorDialog.vue

This commit is contained in:
syuilo 2025-05-29 12:18:18 +09:00
parent b8e11516ff
commit 854a384fd9
1 changed files with 5 additions and 0 deletions

View File

@ -133,6 +133,11 @@ onUnmounted(() => {
});
function save() {
if (layers.length === 0) {
cancel();
return;
}
renderer!.render(); // toBlob
canvasEl.value!.toBlob((blob) => {
emit('ok', new File([blob!], `image-${Date.now()}.png`, { type: 'image/png' }));