Commit c4faabd1 authored by mahui's avatar mahui

init

parent 3e2708e2
...@@ -35,12 +35,14 @@ ...@@ -35,12 +35,14 @@
} }
}, },
watch:{ watch:{
url(){ url(val){
if(val){
this.$nextTick(()=>{ this.$nextTick(()=>{
this.init(); this.init();
window.addEventListener('onresize',this.resize); window.addEventListener('onresize',this.resize);
}) })
} }
}
}, },
methods: { methods: {
play() { play() {
......
...@@ -439,6 +439,8 @@ ...@@ -439,6 +439,8 @@
}); });
} }
function getMonitorInfo() { function getMonitorInfo() {
state.detail.accessToken = '';
state.detail.url = '';
api.getMonitorInfo({id:props.site_id}).then((res)=>{ api.getMonitorInfo({id:props.site_id}).then((res)=>{
if(res.code==0){ if(res.code==0){
if(res.data.access_token){ if(res.data.access_token){
......
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