Browse Source

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

shaogen1995 2 years ago
parent
commit
f92c36be81
1 changed files with 2 additions and 1 deletions
  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="topInfoBoxL">
-            <ImageLazy src={info.thumb} width={300} height={300} />
+            {/* 解决有图片进页面显示 加载失败 图片 问题 */}
+            {info.id?<ImageLazy src={info.thumb} width={300} height={300} />:null}
           </div>
           <div className="topInfoBoxR">
             <div className="topInfoBoxRTit">