Skip to content

Commit

Permalink
fix: make SSR happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Fish committed Jan 3, 2024
1 parent 6ee1618 commit a20efc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/.vuepress/components/UpdateTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a20efc7

Please sign in to comment.