diff --git a/WebUI/electron/main.ts b/WebUI/electron/main.ts index 53b91d25..ca6f613f 100644 --- a/WebUI/electron/main.ts +++ b/WebUI/electron/main.ts @@ -519,11 +519,11 @@ function initEventHandle() { imagePath = imageUrl.pathname.replace(/^\/*/, '') } else { const s = imageUrl.searchParams; - imagePath = `${s.get('type')}/${s.get('filename')}` + imagePath = `static/sd_out/${s.get('filename')}` } if (app.isPackaged) { // Resolve path relative to app when packaged - imagePath = path.join(externalRes, backend, imagePath); + imagePath = path.join(externalRes, 'service', imagePath); } else { // Resolve path relative to current directory during development const cwd = app.getAppPath();