lanxin 13 小時之前
父節點
當前提交
9c139eeaf8
共有 1 個文件被更改,包括 3 次插入3 次删除
  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='' />