fix: 修复 chatAreaEl 重复声明报错

This commit is contained in:
Metona
2026-04-04 21:43:32 +08:00
parent 12843f09a5
commit c8bf90f64b
-2
View File
@@ -7,8 +7,6 @@ import { state, KEYS } from '../state.js';
import { marked } from '../marked-config.js'; import { marked } from '../marked-config.js';
import { escapeHtml, formatTime, downloadFile } from '../utils.js'; import { escapeHtml, formatTime, downloadFile } from '../utils.js';
let chatAreaEl, messagesContainerEl, emptyStateEl;
/** 根据文件名返回合适的图标 */ /** 根据文件名返回合适的图标 */
function getFileIcon(filename) { function getFileIcon(filename) {
const name = filename.toLowerCase(); const name = filename.toLowerCase();