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',