From 6ac1ca66fdf500681c2ad69b5d3d232a09a2bd0a Mon Sep 17 00:00:00 2001 From: "shengwen.chen" Date: Wed, 17 Sep 2025 14:45:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E6=97=B6=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/scheduleList/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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