Prechádzať zdrojové kódy

Merge branch 'feature_remove_all_tab' of Web/contentCooper into master

nieyuge 21 hodín pred
rodič
commit
c91814cded

+ 2 - 2
src/views/publishContent/weCom/components/videoSelectModal/index.tsx

@@ -31,7 +31,7 @@ const SHOW_DEMAND_HOVER = import.meta.env.MODE !== 'production' || getUserInfo()
 type LoadMode = 'replace' | 'append' | 'jump';
 
 const SOURCE_TABS: { key: string; label: string; disabled?: boolean }[] = [
-	{ key: '', label: '全部' },
+	// { key: '', label: '全部' },
 	{ key: 'prior', label: '粉丝喜欢' },
 	{ key: 'posterior', label: '已发优质相似' },
 	{ key: 'hot', label: '票圈热门' },
@@ -131,7 +131,7 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ visible, onClose, o
 	const [playingVideo, setPlayingVideo] = useState<WeVideoItem | null>(null);
 	const [viewingPage, setViewingPage] = useState(1);
 	const [pageAnchors, setPageAnchors] = useState<Map<number, number>>(new Map()); // videoId -> page
-	const [source, setSource] = useState<string>(''); // 测试入口:数据来源筛选(prior/posterior/hot/空)
+	const [source, setSource] = useState<string>('prior'); // 测试入口:数据来源筛选(prior/posterior/hot/空)
 	const observerRef = useRef<IntersectionObserver | null>(null);
 	const pageObserverRef = useRef<IntersectionObserver | null>(null);
 	const passedPagesRef = useRef<Set<number>>(new Set());

+ 2 - 2
src/views/publishContent/weGZH/components/videoSelectModal/index.tsx

@@ -35,7 +35,7 @@ const SHOW_DEMAND_HOVER = import.meta.env.MODE !== 'production' || getUserInfo()
 type LoadMode = 'replace' | 'append' | 'jump';
 
 const SOURCE_TABS: { key: string; label: string; disabled?: boolean }[] = [
-	{ key: '', label: '全部' },
+	// { key: '', label: '全部' },
 	{ key: 'prior', label: '粉丝喜欢' },
 	{ key: 'posterior', label: '已发优质相似' },
 	{ key: 'hot', label: '票圈热门' },
@@ -140,7 +140,7 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ planType, visible,
 	const [playingVideo, setPlayingVideo] = useState<VideoItem | null>(null);
 	const [viewingPage, setViewingPage] = useState(1);
 	const [pageAnchors, setPageAnchors] = useState<Map<number, number>>(new Map()); // videoId -> page
-	const [source, setSource] = useState<string>(''); // 测试入口:数据来源筛选(prior/posterior/hot/空)
+	const [source, setSource] = useState<string>('prior'); // 测试入口:数据来源筛选(prior/posterior/hot/空)
 	const observerRef = useRef<IntersectionObserver | null>(null);
 	const pageObserverRef = useRef<IntersectionObserver | null>(null);
 	const passedPagesRef = useRef<Set<number>>(new Set());