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