-
Notifications
You must be signed in to change notification settings - Fork 10
/
app.vue
44 lines (40 loc) · 985 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<ThemeProvider>
<NaiveUIProvider>
<DefaultLayout>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</DefaultLayout>
<VideoTogetherProvider />
</NaiveUIProvider>
</ThemeProvider>
</template>
<script setup lang="ts">
useHead({
titleTemplate: (titleChunk) => {
return titleChunk
? `${titleChunk} - 熔岩番剧库 LavaAnimeLib`
: "熔岩番剧库 LavaAnimeLib";
},
});
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
import updateLocale from "dayjs/plugin/updateLocale";
dayjs.locale("zh-cn");
dayjs.extend(updateLocale);
dayjs.updateLocale("zh-cn", {
calendar: {
lastDay: "[昨天] HH:mm",
sameDay: "[今天] HH:mm",
nextDay: "[明天] HH:mm",
lastWeek: "[上周]dd HH:mm",
nextWeek: "[下周]dd HH:mm",
sameElse: "YYYY-MM-DD HH:mm",
},
});
usePageLifeCycle().setPageMount();
window.addEventListener("click", () => {
usePageLifeCycle().addClickCount();
});
</script>