Commit cb9c971e authored by 张牧越's avatar 张牧越

bugfix

parent 2e576186
......@@ -455,6 +455,8 @@ export default {
singlePlayer.play();
this.cameraList[nullIndex].player = singlePlayer;
});
} else {
this.cameraList.splice(nullIndex, 1);
}
});
} else {
......@@ -520,11 +522,14 @@ export default {
this.cameraList = [];
},
closeSingle(index) {
this.cameraList[index].player.dispose();
this.cameraList[index].player = null;
this.cameraList[index].live_address_url = "";
this.cameraList[index].id = "";
this.$forceUpdate();
if (this.cameraList[index]) {
this.cameraList[index].player &&
this.cameraList[index].player.dispose();
this.cameraList[index].player = null;
this.cameraList[index].live_address_url = "";
this.cameraList[index].id = "";
this.$forceUpdate();
}
},
viewAll() {
this.cameraList.map((item) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment