From a20efc760eb4b87d698b2236bf91b6cc45d77cdf Mon Sep 17 00:00:00 2001 From: Dragon-Fish Date: Wed, 3 Jan 2024 17:40:52 +0800 Subject: [PATCH] fix: make SSR happy --- src/.vuepress/components/UpdateTime.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.vuepress/components/UpdateTime.vue b/src/.vuepress/components/UpdateTime.vue index 3eed23a..7a7a649 100644 --- a/src/.vuepress/components/UpdateTime.vue +++ b/src/.vuepress/components/UpdateTime.vue @@ -18,7 +18,7 @@ const computedDate = computed(() => { return props.date ? new Date(props.date) : new Date() }) const formatedStr = computed(() => { - if (window.Intl) { + if (Intl) { return new Intl.DateTimeFormat('default', { dateStyle: 'medium', timeStyle: 'medium',