mirror of https://github.com/certd/certd
fix: 服务器时间获取不准确的bug
parent
8d9afa7592
commit
5d10cbf18d
|
@ -182,7 +182,7 @@ const userInfo: ComputedRef<UserInfoRes> = computed(() => {
|
||||||
return userStore.getUserInfo;
|
return userStore.getUserInfo;
|
||||||
});
|
});
|
||||||
const now = computed(() => {
|
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");
|
return dayjs(serverTime).format("YYYY-MM-DD HH:mm:ss");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue