diff --git a/src/App.vue b/src/App.vue index 7eded88..53311ea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,7 +14,28 @@ name: 'Home', components: { top,global - } + }, + mounted() { + // console.log('触发跳转') + this.load() + }, + methods: { + load() { + if(this.$route.name=='device'&&this.cite.memberLoginVo=='') { + this.cite.tlTime.djs = this.cite.tlTime.mrT + }else{ + if(this.cite.tlTime.djs<1) { + this.quit() + }else{ + this.cite.tlTime.djs = this.cite.tlTime.djs-1 + } + } + setTimeout(()=>{ + this.load() + // console.log(this.cite.tlTime,this.cite,this.$route.name) + },1000) + }, + }, }