diff --git a/frontend/index.html b/frontend/index.html index d06f186..0e01b5f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - 甲辰收藏 v1.0.0 + 甲辰收藏 v1.0.1 diff --git a/frontend/src/pages/Edit.jsx b/frontend/src/pages/Edit.jsx index 1abe321..396ee6f 100644 --- a/frontend/src/pages/Edit.jsx +++ b/frontend/src/pages/Edit.jsx @@ -123,7 +123,7 @@ export default function Edit() { if (data.images && Array.isArray(data.images)) { const images = data.images.map(img => ({ file: null, - preview: `http://120.26.133.10:3000/${img.path || `uploads/collections/${img.filename}`}`, + preview: `/${img.path || `uploads/collections/${img.filename}`}`, name: img.original_name || img.filename, size: 0, id: img.id @@ -182,7 +182,7 @@ export default function Edit() { if (data.images && Array.isArray(data.images)) { const images = data.images.map(img => ({ file: null, - preview: `http://120.26.133.10:3000/${img.path || `uploads/collections/${img.filename}`}`, + preview: `/${img.path || `uploads/collections/${img.filename}`}`, name: img.original_name || img.filename, size: 0, id: img.id