|
|
@ -185,7 +185,7 @@ |
|
|
|
<span class="title">{{$route.meta.title}}</span> |
|
|
|
<span class="time">{{time}}</span> |
|
|
|
<svg-icon class="fullScreen" name="fullScreen" @click="fullscreen"/> |
|
|
|
<svg-icon class="out" name="out" @click="$store.commit('data/clearToken')"/> |
|
|
|
<svg-icon class="out" name="out" @click="out"/> |
|
|
|
</div> |
|
|
|
<div class="content" :class="{bgShadow:!/park$/.test($route.path)}"> |
|
|
|
<router-view/> |
|
|
@ -203,6 +203,7 @@ import region from './yuanmou' |
|
|
|
var route=inject("route") |
|
|
|
var {commit,getters}=inject('store') |
|
|
|
var msg=inject("msg") |
|
|
|
var box=inject('box') |
|
|
|
|
|
|
|
var time=ref(new Date().format('yyyy-MM-dd hh:mm')) |
|
|
|
var timeOut=null |
|
|
@ -244,6 +245,11 @@ import region from './yuanmou' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
function out(){ |
|
|
|
box.confirm("确定退出大屏?",'提示').then(e=>{ |
|
|
|
commit('data/clearToken') |
|
|
|
}) |
|
|
|
} |
|
|
|
onMounted(async ()=>{ |
|
|
|
refreshTime() |
|
|
|
interval=setInterval(()=>{ |
|
|
|