mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: 服务器时间获取不准确的bug
This commit is contained in:
@@ -182,7 +182,7 @@ const userInfo: ComputedRef<UserInfoRes> = computed(() => {
|
||||
return userStore.getUserInfo;
|
||||
});
|
||||
const now = computed(() => {
|
||||
const serverTime = settingStore.app.deltaTime + Date.now();
|
||||
const serverTime = Date.now() - settingStore.app.deltaTime;
|
||||
return dayjs(serverTime).format("YYYY-MM-DD HH:mm:ss");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user