<swiper
@change="swiperChange"
class="swiper"
duration="400"
:vertical="true"
:current="swiperData.current"
@touchend="touchEnd"
@touchstart="touchStart"
:circular="swiperData.circular"
@animationfinish="animationfinish"
>
<swiper-item v-for="(item, index) in rawList" :key="index">
{{ rawList }}
<view class="swiper-item">
<VideoPlay :src="item.src" :current="swiperData.current" :id="index"/>
</view>
</swiper-item>
const animationfinish = (e: { detail: { current: number } }) => {
const {current} = e.detail;
if (current === rawList.length - 2) {
rawList.push({
src: "https://xjc.demo.hongcd.com/uploads/20210327/1b72e1b6153cd29df07f5449991e8083.mp4",
id: "6"
}); console.log(rawList, "滑动到倒数第二个push数据"); }};
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
你push给rawList之后貌似没有setData?