fix export bug
This commit is contained in:
@@ -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("批量导出完成!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user