diff --git a/static/js/script.js b/static/js/script.js index 599e50de..8d1f0881 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -193,11 +193,26 @@ function showLoraModal(lora) { const escapedWords = lora.trainedWords?.length ? lora.trainedWords.join(', ').toUpperCase().replace(/'/g, '\\\'') : ''; + // 添加图片加载策略 + const imageMarkup = lora.images.map(img => { + if (img.type === 'video') { + return ``; + } else { + return `Preview`; + } + }).join(''); + const content = `