refactor: Enhance preview file handling and add update_preview_in_cache method for ModelScanner

This commit is contained in:
Will Miao
2025-04-11 08:43:21 +08:00
parent ac244e6ad9
commit b0a5b48fb2
3 changed files with 37 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ import { state } from '../state/index.js';
import { showLoraModal } from './loraModal/index.js';
import { bulkManager } from '../managers/BulkManager.js';
import { NSFW_LEVELS } from '../utils/constants.js';
import { replacePreview } from '../api/loraApi.js'
export function createLoraCard(lora) {
const card = document.createElement('div');