fix
This commit is contained in:
parent
0dd3565d8c
commit
705032657d
|
|
@ -209,7 +209,7 @@ const ProjectManagePage: React.FC = () => {
|
|||
{project.product_image ? (
|
||||
<>
|
||||
<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}
|
||||
className="w-full h-full object-cover"
|
||||
onError={(e) => {
|
||||
|
|
@ -400,7 +400,7 @@ const ProjectManagePage: React.FC = () => {
|
|||
<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">
|
||||
<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="商品图片预览"
|
||||
className="w-full h-full object-cover"
|
||||
onError={(e) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue