2021-05-28 00:32:34 +08:00
|
|
|
<template>
|
2022-01-18 01:17:09 +08:00
|
|
|
<n-config-provider
|
|
|
|
:theme="theme.naiveTheme"
|
|
|
|
:theme-overrides="theme.naiveThemeOverrides"
|
|
|
|
:locale="zhCN"
|
|
|
|
:date-locale="dateZhCN"
|
|
|
|
class="h-full"
|
|
|
|
>
|
|
|
|
<naive-provider>
|
|
|
|
<router-view />
|
|
|
|
</naive-provider>
|
|
|
|
</n-config-provider>
|
2021-05-28 00:32:34 +08:00
|
|
|
</template>
|
|
|
|
|
2022-01-04 02:20:32 +08:00
|
|
|
<script setup lang="ts">
|
2022-02-17 00:58:55 +08:00
|
|
|
import { zhCN, dateZhCN } from 'naive-ui';
|
2022-01-18 01:17:09 +08:00
|
|
|
import { useThemeStore, subscribeStore } from '@/store';
|
2022-01-16 20:13:11 +08:00
|
|
|
|
2022-01-18 01:17:09 +08:00
|
|
|
const theme = useThemeStore();
|
2022-01-16 20:13:11 +08:00
|
|
|
|
2022-01-18 01:17:09 +08:00
|
|
|
subscribeStore();
|
2022-01-04 02:20:32 +08:00
|
|
|
</script>
|
2022-05-28 12:30:17 +08:00
|
|
|
|
2022-01-03 22:20:10 +08:00
|
|
|
<style scoped></style>
|