原因:EZUIKit类赋值到dom节点后影响到dom节点更新
解决:外层嵌套一层节点,v-for外层节点如下
<div :class="item" v-for="item in videoPlay2" :key="item">
<div :id="item"></div>
</div>
<div :id="item" :class="item" v-for="item in videoPlay2" :key="item"
</div>
getYSToken().then((res) => {
new EZUIKit.EZUIKitPlayer({
id:item,
audio: 0,
url: playUrl,
template: "pcLive",
accessToken: res,
});
});