fix export bug

This commit is contained in:
Julian Freeman
2026-01-19 13:18:57 -04:00
parent 6cb5b7a61f
commit 84ae92d1e3
2 changed files with 92 additions and 83 deletions

View File

@@ -32,7 +32,9 @@ async function openFolder() {
async function exportBatch() {
if (store.images.length === 0) return;
if (!store.watermarkSettings.text) {
// Only require text if in ADD mode
if (store.editMode === 'add' && !store.watermarkSettings.text) {
alert("请输入水印文字。");
return;
}
@@ -67,7 +69,8 @@ async function exportBatch() {
await invoke('export_batch', {
images: exportTasks,
watermark: rustWatermarkSettings,
outputDir: outputDir
outputDir: outputDir,
mode: store.editMode
});
alert("批量导出完成!");
}