页面刷新修改
This commit is contained in:
parent
a1c8637d10
commit
68ea11b484
|
|
@ -121,7 +121,7 @@ import VueCarousel from 'vue-carousel';
|
||||||
Vue.use(VueCarousel);
|
Vue.use(VueCarousel);
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import Cookies from 'js-cookie';
|
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';
|
import * as echarts from 'echarts';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -361,6 +361,12 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getCurrentTime() {
|
getCurrentTime() {
|
||||||
|
//时间戳小于2025年1月1日10:10:10则刷新页面
|
||||||
|
if (this.sysTime < 1735697410000){
|
||||||
|
this.$message.error("时间异常,页面即将刷新!");
|
||||||
|
window.location.reload(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.countTime = this.countTime+1000;
|
this.countTime = this.countTime+1000;
|
||||||
var nowTime = this.countTime+this.sysTime
|
var nowTime = this.countTime+this.sysTime
|
||||||
const now = new Date(nowTime);
|
const now = new Date(nowTime);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue