This commit is contained in:
root 2025-07-11 01:29:16 +08:00
parent 0dd3565d8c
commit 705032657d
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ const ProjectManagePage: React.FC = () => {
{project.product_image ? ( {project.product_image ? (
<> <>
<img <img
src={project.product_image.startsWith('http') ? project.product_image : `file:///${project.product_image}`} src={project.product_image.startsWith('http') ? project.product_image : `file:///${project.product_image.split('\\').join('/')}`}
alt={project.product_name || project.name} alt={project.product_name || project.name}
className="w-full h-full object-cover" className="w-full h-full object-cover"
onError={(e) => { onError={(e) => {
@ -400,7 +400,7 @@ const ProjectManagePage: React.FC = () => {
<p className="text-xs text-gray-500 mb-1">:</p> <p className="text-xs text-gray-500 mb-1">:</p>
<div className="w-20 h-20 border border-gray-200 rounded-lg overflow-hidden bg-gray-50 flex items-center justify-center"> <div className="w-20 h-20 border border-gray-200 rounded-lg overflow-hidden bg-gray-50 flex items-center justify-center">
<img <img
src={formData.product_image.startsWith('http') ? formData.product_image : `file://${formData.product_image}`} src={formData.product_image.startsWith('http') ? formData.product_image : `file:///${formData.product_image.split('\\').join('/')}`}
alt="商品图片预览" alt="商品图片预览"
className="w-full h-full object-cover" className="w-full h-full object-cover"
onError={(e) => { onError={(e) => {