Explorar el Código

🐛解决总账查看页面:有图片进页面显示 加载失败 图片 问题

shaogen1995 hace 3 años
padre
commit
f92c36be81
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/pages/ObjectSon/Object2/LookObject2/index.tsx

+ 2 - 1
src/pages/ObjectSon/Object2/LookObject2/index.tsx

@@ -237,7 +237,8 @@ function LookObject2() {
         {/* 上面的信息 */}
         {/* 上面的信息 */}
         <div className="topInfoBox">
         <div className="topInfoBox">
           <div className="topInfoBoxL">
           <div className="topInfoBoxL">
-            <ImageLazy src={info.thumb} width={300} height={300} />
+            {/* 解决有图片进页面显示 加载失败 图片 问题 */}
+            {info.id?<ImageLazy src={info.thumb} width={300} height={300} />:null}
           </div>
           </div>
           <div className="topInfoBoxR">
           <div className="topInfoBoxR">
             <div className="topInfoBoxRTit">
             <div className="topInfoBoxRTit">