Commit 903ab1c6 authored by caicaicai's avatar caicaicai

修改

parent b29ae0d1
...@@ -421,7 +421,7 @@ export default { ...@@ -421,7 +421,7 @@ export default {
} }
}, },
// 销毁 // 销毁
destroyed() { beforeDestroy() {
this.itemList.forEach(function(item,index){ this.itemList.forEach(function(item,index){
item.hls.destroy(); item.hls.destroy();
}) })
......
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
} }
}, },
// 销毁 // 销毁
destroyed() { beforeDestroy() {
this.itemList.forEach(function(item,index){ this.itemList.forEach(function(item,index){
item.hls.destroy(); item.hls.destroy();
}) })
......
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
}, },
}, },
destroyed: function() { beforeDestroy() {
//页面销毁时关闭长连接 //页面销毁时关闭长连接
this.websocketclose(); this.websocketclose();
//关闭心跳 //关闭心跳
......
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
<!-- <div class="carExample" @click="showSpecificInforFn()"> <!-- <div class="carExample" @click="showSpecificInforFn()">
<span class="el-icon-location"></span> <span class="el-icon-location"></span>
</div> --> </div> -->
<div id="centerDiv" class="mapcontainer1"> <!-- <div id="centerDiv" class="mapcontainer1">
<mars3dViewerMap :url="configUrl" @onload="onMapload"/> <mars3dViewerMap :url="configUrl" @onload="onMapload"/>
</div> </div> -->
</div> </div>
</template> </template>
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
let sec = String(myDate.getSeconds() < 10 ? '0' + myDate.getSeconds() : myDate.getSeconds()); let sec = String(myDate.getSeconds() < 10 ? '0' + myDate.getSeconds() : myDate.getSeconds());
let weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']; let weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
let week = weeks[wk]; let week = weeks[wk];
this.currentTime = yy + '/' + mm + '/' + dd + ' ' + hou + ':' + min + ':' + sec; this.currentTime = yy + '/' + mm + '/' + dd + ' ' + hou + ':' + min;
}, },
// 地图构造完成回调 // 地图构造完成回调
onMapload(map) { onMapload(map) {
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
}, },
destroyed(){ beforeDestroy(){
this.timer = null; this.timer = null;
} }
} }
......
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