lanxin 16 ore fa
parent
commit
d478f0d989
1 ha cambiato i file con 8 aggiunte e 5 eliminazioni
  1. 8 5
      project/src/pages/A5view/PageSon/A5win/index.tsx

+ 8 - 5
project/src/pages/A5view/PageSon/A5win/index.tsx

@@ -54,11 +54,14 @@ function A5win({ id, closeFu }: Props) {
                 ) : null}
 
                 <img src={require('@/assets/three/icX.png')} alt='' onClick={closeFu} />
-                <img
-                  src={require('@/assets/three/icM.png')}
-                  alt=''
-                  onClick={() => history.replace(`/view/model?id=${info.id}`)}
-                />
+
+                {info.modelShow ? (
+                  <img
+                    src={require('@/assets/three/icM.png')}
+                    alt=''
+                    onClick={() => history.replace(`/view/model?id=${info.id}`)}
+                  />
+                ) : null}
               </div>
             </>
           ) : null}