Commit c4faabd1 authored by mahui's avatar mahui

init

parent 3e2708e2
...@@ -35,11 +35,13 @@ ...@@ -35,11 +35,13 @@
} }
}, },
watch:{ watch:{
url(){ url(val){
this.$nextTick(()=>{ if(val){
this.init(); this.$nextTick(()=>{
window.addEventListener('onresize',this.resize); this.init();
}) window.addEventListener('onresize',this.resize);
})
}
} }
}, },
methods: { methods: {
......
...@@ -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