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

bugfix

parent 2e576186
...@@ -455,6 +455,8 @@ export default { ...@@ -455,6 +455,8 @@ export default {
singlePlayer.play(); singlePlayer.play();
this.cameraList[nullIndex].player = singlePlayer; this.cameraList[nullIndex].player = singlePlayer;
}); });
} else {
this.cameraList.splice(nullIndex, 1);
} }
}); });
} else { } else {
...@@ -520,11 +522,14 @@ export default { ...@@ -520,11 +522,14 @@ export default {
this.cameraList = []; this.cameraList = [];
}, },
closeSingle(index) { closeSingle(index) {
if (this.cameraList[index]) {
this.cameraList[index].player &&
this.cameraList[index].player.dispose(); this.cameraList[index].player.dispose();
this.cameraList[index].player = null; this.cameraList[index].player = null;
this.cameraList[index].live_address_url = ""; this.cameraList[index].live_address_url = "";
this.cameraList[index].id = ""; this.cameraList[index].id = "";
this.$forceUpdate(); this.$forceUpdate();
}
}, },
viewAll() { viewAll() {
this.cameraList.map((item) => { 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