fix(DetailsComments): 移除图片预览的键盘事件监听,改用预览组件

feat(details/[id]): 添加图片预览组件脚本
chore(http): 更新开发环境session token
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-11-21 12:24:56 +08:00
parent 5ae2fdcc8f
commit 3c4b3520c1
62 changed files with 342 additions and 343 deletions

View File

@@ -971,9 +971,8 @@ let dialogSrc = ref(""); // 大图的src
// 处理点击答案图片 展开大图
const handleAnswerText = (e) => {
if (e.target.tagName === "IMG") {
var src = e.target.getAttribute("src");
dialogSrc.value = src;
window.addEventListener("keydown", handleKeydown);
const src = e.target.getAttribute("src");
previewImage.initComponent(src);
}
};