Skip to content

Commit

Permalink
fix: 修复云端时间与本地不一致导致的跳变
Browse files Browse the repository at this point in the history
  • Loading branch information
camera-2018 committed Jan 27, 2023
1 parent 1e6ab80 commit cf19a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/Aside/Sign.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
const hours = useDateFormat(useNow(), 'HH')
const hours = useDateFormat(useNow(), 'HH', { locales: 'zh-Hans-CN' })
const state = ref('')
if (parseInt(hours.value) >= 0 && parseInt(hours.value) <= 11)
state.value = '早上好!'
Expand All @@ -14,7 +14,7 @@ else if (parseInt(hours.value) > 18 && parseInt(hours.value) <= 24)
<template>
<div display="block" class="">
<div class="bg-light-50 p-5 py-6">
<div class="flex flex-row gap-3 items-center">
<div class="flex flex-row gap-4 items-center">
<div class="flex flex-col gap-1">
<span class="text-black font-bold text-2xl">{{ state }}</span>
<div class="text-[#8a919f] text-lg">
Expand Down

0 comments on commit cf19a93

Please sign in to comment.