From e1779d7923a0a23cd1a96093f8f0e4d385220a64 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Sun, 9 Feb 2025 14:56:31 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E7=9B=B4=E6=92=AD=E5=B0=86=E7=A9=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=BC=E8=87=B4=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/index.scss | 2 +- src/pages/live/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/index.scss b/src/assets/index.scss index e6a0658..87b1924 100644 --- a/src/assets/index.scss +++ b/src/assets/index.scss @@ -134,7 +134,7 @@ img { --navigation-width: 200px; } .container { - max-width: 98%; + max-width: 90%; padding: 20px 0; } diff --git a/src/pages/live/index.tsx b/src/pages/live/index.tsx index 19a3042..4e43724 100644 --- a/src/pages/live/index.tsx +++ b/src/pages/live/index.tsx @@ -207,7 +207,7 @@ export default function LiveIndex() { }, [checkedIdArray, state.activeIndex]) const currentSelectedVideoIds = useMemo(()=>{ - const activeId = videoData[state.activeIndex].id; + const activeId = videoData[state.activeIndex]?.id || -1; return checkedIdArray.length == 0 ? [] : checkedIdArray.filter(id => id != activeId) },[checkedIdArray,state.activeIndex])