mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 15:47:02 +08:00
fix: AI 실행 결과물 다운로드 기능 개선
This commit is contained in:
parent
5f1064a294
commit
71e3b17ad4
@ -170,6 +170,7 @@
|
||||
<div class="output-group">
|
||||
Output:
|
||||
<div id="progress-text">Ready</div>
|
||||
<img id="output-image" src="" alt="Output Image" style="display: none; max-height: 100px;" />
|
||||
<a id="image-link" href="" download>Download</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1371,9 +1371,13 @@ export class ComfyApp {
|
||||
}
|
||||
|
||||
if(filename) {
|
||||
const imageDisplay = document.getElementById('image-link');
|
||||
imageDisplay.href = `/output/${filename}`;
|
||||
imageDisplay.download = `${filename}`;
|
||||
const imageDisplay = document.getElementById('output-image');
|
||||
imageDisplay.src = `/view?filename=${filename}&subfolder=&type=output&rand=${Math.random()}`;
|
||||
imageDisplay.style.display = 'block';
|
||||
|
||||
const imageLink = document.getElementById('image-link');
|
||||
imageLink.href = `/view?filename=${filename}&subfolder=&type=output&rand=${Math.random()}`;
|
||||
imageLink.download = `${filename}`;
|
||||
|
||||
const progressText = document.getElementById('progress-text');
|
||||
progressText.textContent = "executed";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user