Commit 378f5cc7 authored by mahui's avatar mahui

init

parent bb738c3d
...@@ -41,6 +41,14 @@ ...@@ -41,6 +41,14 @@
window.addEventListener('onresize',this.resize); window.addEventListener('onresize',this.resize);
}) })
}, },
unmounted(){
if(this.player){
window.removeEventListener('onresize',this.resize);
this.player.stop();
this.player = null;
}
},
methods: { methods: {
play() { play() {
const playPromise = this.player.play(); const playPromise = this.player.play();
......
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
</div> </div>
</div> </div>
<div class="body-one monitor" v-else-if="tab=='monitor'"> <div class="body-one monitor" v-else-if="tab=='monitor'">
<esu :site_id="site_id"></esu> <esu :site_id="site_id" :></esu>
</div> </div>
<div class="body-one process" v-else-if="tab=='process'"> <div class="body-one process" v-else-if="tab=='process'">
<div class="process-box"> <div class="process-box">
......
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