import React, { useMemo, useState } from 'react' import styles from './index.module.scss' import Hot1 from './Hot1' import Hot2 from './Hot2' import { myData } from '@/utils/http' import HotIcon from '@/components/HotIcon' function PanoVideo() { // 0为 第一种模式的热点 其他为第二种 const [ind, setInd] = useState(-1) const data = useMemo(() => { if (ind !== -1) return myData.visit.hot[ind].data else return [] }, [ind]) return (