|
@@ -439,11 +439,17 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
|
- this.getCamera(this.cameraType)
|
|
|
|
|
|
|
+ this.bind && this.getCamera(this.cameraType)
|
|
|
},
|
|
},
|
|
|
beforeDestroy () {
|
|
beforeDestroy () {
|
|
|
this.destroyPlayer()
|
|
this.destroyPlayer()
|
|
|
},
|
|
},
|
|
|
|
|
+ activated () {
|
|
|
|
|
+ this.getCamera(this.cameraType)
|
|
|
|
|
+ },
|
|
|
|
|
+ deactivated () {
|
|
|
|
|
+ this.destroyPlayer()
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
destroyPlayer () {
|
|
destroyPlayer () {
|
|
|
for (const key in this.playerList) {
|
|
for (const key in this.playerList) {
|