diff --git a/src/views/scheduleList/index.vue b/src/views/scheduleList/index.vue index 7933d05..0ba9b95 100644 --- a/src/views/scheduleList/index.vue +++ b/src/views/scheduleList/index.vue @@ -309,7 +309,11 @@ export default { // 每秒更新一次当前时间 getServerDateTime().then(res => { - this.serverTimeStamp = dayjs(res['Data']).valueOf() + if (dayjs().utcOffset() == 480) { + this.serverTimeStamp = dayjs(res['Data']).valueOf() + } else { + this.serverTimeStamp = dayjs(res['Data']).valueOf() + 8 * 60 * 60 * 1000 + } this.dateTimer = setInterval(() => { this.currentDateTime = dayjs(this.serverTimeStamp).format(`YYYY-MM-DD HH:mm dddd`); this.serverTimeStamp += 1000