提交 73b1e676 编写于 作者: H haoxr

refactor: 控制台优化

Former-commit-id: be57e145
上级 e1ba7399
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册