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}` +``` + +**影响范围**: +- ✅ 编辑页面图片预览 +- ✅ 图片上传后预览更新 + +--- + ## 📊 技术细节 ### 图片访问流程