@@ -80,7 +80,9 @@ const CardPage = () => {
//自动滚动到第一个买了的商品
setTimeout(() => {
- setAct(actKey);
+ if (actKey) {
+ setAct(actKey);
+ }
swiperRef.current?.slideToLoop(actKey, 0, false);
}, 100);