页面刷新修改
This commit is contained in:
parent
a1c8637d10
commit
68ea11b484
|
|
@ -10,10 +10,10 @@
|
|||
<div class="hourTimeClass">
|
||||
<span style="color:#D8E2FF;font-size: 24px;margin-top: 12px;">{{hourTime}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: auto;width: 100%;margin-bottom: 40px;">
|
||||
<div class="partthree_title"><span>健康晨检</span></div>
|
||||
<div class="partthree_title2"><div class="fegexian2" style="margin-top: 2px;"></div></div>
|
||||
<div class="partthree_title2"><div class="fegexian2" style="margin-top: 2px;"></div></div>
|
||||
<div class="contentclass">
|
||||
<table style="width: 100%;height: 100%;">
|
||||
<tr>
|
||||
|
|
@ -121,7 +121,7 @@ import VueCarousel from 'vue-carousel';
|
|||
Vue.use(VueCarousel);
|
||||
import axios from 'axios';
|
||||
import Cookies from 'js-cookie';
|
||||
import { getCurrentRecipeListApi,getCertificateListApi,getMorningCheckInfoApi } from "@/api/view";
|
||||
import { getCurrentRecipeListApi, getCertificateListApi, getMorningCheckInfoApi, getTimeStampApi } from '@/api/view'
|
||||
import * as echarts from 'echarts';
|
||||
|
||||
export default {
|
||||
|
|
@ -361,6 +361,12 @@ export default {
|
|||
});
|
||||
},
|
||||
getCurrentTime() {
|
||||
//时间戳小于2025年1月1日10:10:10则刷新页面
|
||||
if (this.sysTime < 1735697410000){
|
||||
this.$message.error("时间异常,页面即将刷新!");
|
||||
window.location.reload(true);
|
||||
return;
|
||||
}
|
||||
this.countTime = this.countTime+1000;
|
||||
var nowTime = this.countTime+this.sysTime
|
||||
const now = new Date(nowTime);
|
||||
|
|
@ -581,7 +587,7 @@ export default {
|
|||
width: 100%;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
color:#fff;
|
||||
color:#fff;
|
||||
}
|
||||
.fegexian{
|
||||
width: 50%;
|
||||
|
|
|
|||
Loading…
Reference in New Issue