15
15
</template >
16
16
17
17
<script setup lang="ts">
18
-
19
18
const { coords, resume } = useGeolocation ()
20
19
21
20
const { meta, fullPath } = useRoute ()
@@ -41,7 +40,7 @@ useHead({
41
40
return title && ! title ?.includes (t (' pageTitle.yeonju' ))
42
41
? title ?.concat (' | ' , t (' pageTitle.yeonju' ))
43
42
: null
44
- }
43
+ },
45
44
})
46
45
47
46
watch (() => genDateFormat (' HH' ), () => {
@@ -51,7 +50,6 @@ watch(() => genDateFormat('HH'), () => {
51
50
}
52
51
})
53
52
54
-
55
53
watch (() => coords .value , () => {
56
54
if (coords .value .latitude === Infinity ) {
57
55
resume ()
@@ -79,7 +77,7 @@ const initWeatherData = () => {
79
77
const seoUrl = ' https://www.dewdew.dev'
80
78
const seoImage = ' https://api.dewdew.dev/storage/v1/object/public/assets/banner/main_banner.webp'
81
79
82
- if (process .server ) {
80
+ if (import . meta .server ) {
83
81
useHead ({
84
82
title: (meta .title as string ) ?? ' ๊ฐ๋ฐ์ ์ด์ฐ์ฃผ | Dewdew' ,
85
83
meta : () => [
@@ -99,7 +97,7 @@ if (process.server) {
99
97
{ property: ' og:image:height' , content: ' 200' },
100
98
{ property: ' og:image:type' , content: ' image/png' },
101
99
{ property: ' og:title' , content: (meta .title as string ) ?? t (' pageTitle.yeonju' ) },
102
- { property: ' og:description' , content: (meta .description as string ) ?? t (' openGraph.main' ) }
100
+ { property: ' og:description' , content: (meta .description as string ) ?? t (' openGraph.main' ) },
103
101
],
104
102
link: [
105
103
{ rel: ' canonical' , href: fullPath },
@@ -110,17 +108,16 @@ if (process.server) {
110
108
{ rel: ' icon' , type: ' image/png' , sizes: ' 32x32' , href: ' /favicon-32x32.png' },
111
109
{ rel: ' icon' , type: ' image/png' , sizes: ' 16x16' , href: ' /favicon-16x16.png' },
112
110
{ rel: ' manifest' , href: ' /manifest.webmanifest' },
113
- { rel: ' mask-icon' , href: ' /safari-pinned-tab.svg' , color: ' #5bbad5' }
111
+ { rel: ' mask-icon' , href: ' /safari-pinned-tab.svg' , color: ' #5bbad5' },
114
112
],
115
113
script: [
116
114
{
117
115
hid: ' spiine-viewer' ,
118
116
src: ' https://unpkg.com/@splinetool/[email protected] /build/spline-viewer.js' ,
119
117
type: ' module' ,
120
- defer: true
121
- }
122
- ]
118
+ defer: true ,
119
+ },
120
+ ],
123
121
})
124
122
}
125
-
126
123
</script >
0 commit comments