lanxin il y a 13 heures
Parent
commit
9c139eeaf8
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      project/src/pages/A5viewM/PanoHot/index.tsx

+ 3 - 3
project/src/pages/A5viewM/PanoHot/index.tsx

@@ -14,10 +14,10 @@ function ViewHot({ activeIndex, closeFn }: { activeIndex: number; closeFn: () =>
         </div>
       </div>
       <div className={styles.bottom}>
-        <div
+      {cardNames.find(v => v.id === activeIndex)?.modelShow &&  <div
           className={styles.tab}
-          onClick={() =>cardNames[activeIndex].modelShow && history.replace(`/view/atlas?id=${activeIndex}`)}
-        ></div>
+          onClick={() => history.replace(`/view/atlas?id=${activeIndex}`)}
+        ></div>}
       </div>
       <div className={styles.closeBtn} onClick={closeFn}>
         <img src={require('../../../assets/img/close_M.png')} alt='' />