File tree 4 files changed +7496
-9793
lines changed
components/custom/Nav/user
4 files changed +7496
-9793
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function signOutHandler() {
31
31
<DropdownMenuTrigger as-child >
32
32
<Button class =" relative h-8 w-8 rounded-full" variant =" ghost" >
33
33
<Avatar class =" h-8 w-8" >
34
- <AvatarImage :src =" user?.imageUrl!" />
34
+ <AvatarImage :src =" String( user?.imageUrl!) " />
35
35
<AvatarFallback >C</AvatarFallback >
36
36
</Avatar >
37
37
</Button >
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export default defineNuxtConfig({
21
21
'nuxt-icon' ,
22
22
'@nuxt/fonts' ,
23
23
'nuxt-svgo' ,
24
- 'dayjs-nuxt' ,
25
24
'@sentry/nuxt/module' ,
26
25
'@nuxt/image' ,
27
26
] ,
Original file line number Diff line number Diff line change @@ -8,15 +8,17 @@ definePageMeta({
8
8
useHead ({
9
9
title: ' Home | Enspire' ,
10
10
})
11
+
12
+ const now = new Date ().getHours ()
11
13
</script >
12
14
13
15
<template >
14
16
<div class =" text-3xl font-bold" >
15
17
{{
16
- $dayjs().hour() < 5 ? '晚上好!'
17
- : $dayjs().hour() < 12 ? '早上好!'
18
- : $dayjs().hour() < 13 ? '中午好!'
19
- : $dayjs().hour() < 18 ? '下午好!' : '晚上好!'
18
+ now < 5 ? '晚上好!'
19
+ : now < 12 ? '早上好!'
20
+ : now < 13 ? '中午好!'
21
+ : now < 18 ? '下午好!' : '晚上好!'
20
22
}}
21
23
</div >
22
24
<div class =" text-muted-foreground" >
You can’t perform that action at this time.
0 commit comments