<img id="playUrl1" :src="playUrl1"
style="width: 100%; height: 100%" />
beforeDestroy() {
//清除直播流
this.cleanMedia(“playUrl1”);
},
cleanMedia(id) {
let playItem = document.getElementById(id);
playItem.setAttribute(“src”, “”);
},
<img id="playUrl1" :src="playUrl1"
style="width: 100%; height: 100%" />
beforeDestroy() {
//清除直播流
this.cleanMedia(“playUrl1”);
},
cleanMedia(id) {
let playItem = document.getElementById(id);
playItem.setAttribute(“src”, “”);
},
路由切换时,图片的url接受的流多次加载
http://xkzx.work/archives/路由切换时图片的url接受的流多次加载