diff --git a/src/views/view.vue b/src/views/view.vue index bf1ecc2..dda92ab 100644 --- a/src/views/view.vue +++ b/src/views/view.vue @@ -10,10 +10,10 @@
{{hourTime}}
- +
健康晨检
-
+
@@ -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%;