From 73b1e676934d4e4c89430df8852a4730c9ac39c6 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Tue, 24 Jan 2023 08:00:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: be57e145b8b6bdc8e18eca2fad92f180feac90f1 --- src/views/dashboard/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 1a3ae43..28d3178 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -18,8 +18,10 @@ const userStore = useUserStore(); const date: Date = new Date(); const greetings = computed(() => { - if (date.getHours() >= 6 && date.getHours() < 12) { - return '晨起披衣出草堂,轩窗已自喜微凉🌞!'; + if (date.getHours() >= 6 && date.getHours() < 8) { + return '晨起披衣出草堂,轩窗已自喜微凉🌅!'; + } else if (date.getHours() >= 8 && date.getHours() < 18) { + return '上午好🌞!'; } else if (date.getHours() >= 12 && date.getHours() < 18) { return '下午好☕!'; } else if (date.getHours() >= 18 && date.getHours() < 24) { -- GitLab