lanxin пре 20 часа
родитељ
комит
01d1232f53
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      project/src/pages/A5viewM/PanoHot/index.tsx

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

@@ -16,7 +16,7 @@ function ViewHot({ activeIndex, closeFn }: { activeIndex: number; closeFn: () =>
       <div className={styles.bottom}>
         <div
           className={styles.tab}
-          onClick={() => history.replace(`/view/atlas?id=${activeIndex}`)}
+          onClick={() =>cardNames[activeIndex].modelShow && history.replace(`/view/atlas?id=${activeIndex}`)}
         ></div>
       </div>
       <div className={styles.closeBtn} onClick={closeFn}>