|
@@ -42,6 +42,9 @@ const VipProgress: React.FC<Props> = ({
|
|
|
|
|
|
setAct(vipInfo.vip_level);
|
|
|
swiperRef.current?.slideTo(vipInfo.vip_level);
|
|
|
+ if (typeof onChange === "function") {
|
|
|
+ onChange(vipInfo.vip_level);
|
|
|
+ }
|
|
|
}, [vipInfo, useInnerVip]);
|
|
|
React.useEffect(() => {
|
|
|
if (!useInnerVip) {
|