Commit 04ac4a7f authored by 拾柒's avatar 拾柒

添加销毁

parent 876ea75f
......@@ -317,6 +317,15 @@ export default {
console.log("promise 获取 数据", data);
});
},
},
destroyed() {
if(this.player ){
this.player.stop()
}
// 销毁
this.player = null
this.player.destroyed()
}
}
</script>
......
......@@ -369,6 +369,23 @@ export default {
console.log("promise 获取 数据", data);
});
},
},
destroyed() {
if(this.player || this.player2 || this.player3 || this.player1){
this.player2.stop()
this.player1.stop()
this.player3.stop()
this.player.stop()
}
// 销毁
this.player = null
this.player.destroyed()
this.player1 = null
this.player1.destroyed()
this.player2 = null
this.player2.destroyed()
this.player3 = null
this.player3.destroyed()
}
}
</script>
......
......@@ -352,6 +352,13 @@ export default {
this.$router.go(-1)
}
}
},
destroyed() {
if(this.player){
this.player.stop()
this.player.destroyed()
this.player = null
}
}
}
</script>
......
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