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

@@ -165,9 +165,7 @@ const editApp = createApp({
const infoTarget = data.info || {};
// console.log("content", infoTarget.content);
if (infoTarget.content) infoTarget.content = restoreHtml(infoTarget.content, infoTarget.attachments);
// console.log("content", infoTarget.content);
info.value = infoTarget;
token.value = data.token;
@@ -257,7 +255,6 @@ const editApp = createApp({
async customUpload(file, insertFn) {
try {
const img = await uploading(file, file.name, "image");
console.log("img", img);
insertFn(`${img.url}?aid=${img.aid}`);
} catch (err) {
@@ -430,7 +427,6 @@ const editApp = createApp({
// 定义图片处理函数
const processImg = (aid, width, height, href) => {
console.log("processImg", aid, width, height, href);
const image = imageList.find((img) => String(img.aid) === String(aid));
if (!image) return "";