页面刷新修改

This commit is contained in:
jjLv 2025-12-16 15:01:17 +08:00
parent a1c8637d10
commit 68ea11b484
1 changed files with 10 additions and 4 deletions

View File

@ -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() {
//20251110: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);