diff --git a/config/VERSION b/config/VERSION index d04827c..f5d32b2 100644 --- a/config/VERSION +++ b/config/VERSION @@ -2,7 +2,7 @@ # Version Configuration for Zodiac Collection Management System # 当前版本号 (语义化版本:主版本。次版本.修订版) -VERSION=1.1.7 +VERSION=1.1.8 # 版本代号 (可选) VERSION_CODENAME="新生" diff --git a/frontend/index.html b/frontend/index.html index 0719e53..a185ee1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - 甲辰收藏 v1.1.5 + 甲辰收藏 v1.1.7 diff --git a/frontend/src/pages/Detail.jsx b/frontend/src/pages/Detail.jsx index 8c7699d..828c026 100644 --- a/frontend/src/pages/Detail.jsx +++ b/frontend/src/pages/Detail.jsx @@ -158,7 +158,7 @@ export default function Detail() { {collection.images.map((img, index) => (
{img.originalName { setCurrentImageIndex(index); setShowImage(true); }} style={{ @@ -291,7 +291,7 @@ export default function Detail() { {/* 图片 */} {collection.images[currentImageIndex].originalName e.stopPropagation()} style={{ maxWidth: '100%', maxHeight: '100%', objectFit: 'contain' }} diff --git a/frontend/src/pages/Edit.jsx b/frontend/src/pages/Edit.jsx index 396ee6f..69452ee 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: `/${img.path || `uploads/collections/${img.filename}`}`, + preview: img.path?.startsWith('http') ? img.path : `/${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: `/${img.path || `uploads/collections/${img.filename}`}`, + preview: img.path?.startsWith('http') ? img.path : `/${img.path || `uploads/collections/${img.filename}`}`, name: img.original_name || img.filename, size: 0, id: img.id