refactor: 移除调试日志并优化代码结构

移除多个文件中的console.log调试语句
添加search-tag.css和search-tag.less中的set-hint-box样式
新增recommend.js推荐功能模块
优化ajaxGet调用和用户信息处理逻辑
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-12-17 19:36:53 +08:00
parent 2eb81dcc10
commit 51179c3842
17 changed files with 240 additions and 43 deletions

View File

@@ -250,8 +250,6 @@ const { createApp, ref, onMounted, nextTick, onUnmounted, computed, watch, provi
return `<img src="${image.url}" ${style}>`;
});
console.log(html);
// 5. 统一在单次遍历中按出现顺序替换 attach/attachimg
const byAid = new Map();
imageList.forEach((e) => byAid.set(Number(e.aid), { type: "image", ...e }));
@@ -1013,7 +1011,6 @@ const { createApp, ref, onMounted, nextTick, onUnmounted, computed, watch, provi
editCommentState.value = true;
nextTick(() => {
console.log('editInputRef.value',editInputRef.value);
editInputRef.value.style.height = "auto"; // 重置高度
editInputRef.value.style.height = `${editInputRef.value.scrollHeight}px`; // 设置为内容高度
});