From 3da50776c3a41e7c294d49041ea25606583e25df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=85=B7=E5=8D=9A=E7=89=B9?= Date: Mon, 16 Mar 2026 12:07:36 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20v1.0.1=20=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E8=AF=B4=E6=98=8E=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E4=BF=AE=E5=A4=8D=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/RELEASE_v1.0.1.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/RELEASE_v1.0.1.md b/docs/RELEASE_v1.0.1.md index c0c7547..90f908c 100644 --- a/docs/RELEASE_v1.0.1.md +++ b/docs/RELEASE_v1.0.1.md @@ -163,6 +163,32 @@ src={`/${img.path}`} --- +### 5. 编辑页面图片预览修复 📝 + +**问题描述**: +- 编辑页面 `Edit.jsx` 中图片预览 URL 写死了错误的服务器地址 +- 导致编辑页面无法显示图片预览 + +**解决方案**: +- 使用相对路径代替硬编码 URL + +**代码变更**: +```jsx +// frontend/src/pages/Edit.jsx + +// 修复前 (2 处) +preview: `http://120.26.133.10:3000/${img.path}` + +// 修复后 +preview: `/${img.path}` +``` + +**影响范围**: +- ✅ 编辑页面图片预览 +- ✅ 图片上传后预览更新 + +--- + ## 📊 技术细节 ### 图片访问流程