From 68ea11b484786805e0a5f4f5916b93cd89fc16e2 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Tue, 16 Dec 2025 15:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/view.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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%;