Browse Source

修改加载

master
邓宏 2 years ago
parent
commit
d4e85cf356
  1. 1
      src/components/container.vue
  2. 8
      src/view/home.vue

1
src/components/container.vue

@ -19,6 +19,7 @@
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 100;
pointer-events: all;
}
}
</style>

8
src/view/home.vue

@ -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(()=>{

Loading…
Cancel
Save