feat: 实现后台管理前端全部页面与登录布局
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<n-config-provider :theme-overrides="themeOverrides" :locale="naiveLocale" :date-locale="naiveDateLocale">
|
||||
<router-view />
|
||||
</n-config-provider>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { zhCN, dateZhCN, enUS, dateEnUS } from 'naive-ui';
|
||||
import { themeOverrides } from '@/theme';
|
||||
|
||||
const { locale } = useI18n();
|
||||
const naiveLocale = computed(() => (locale.value === 'en-US' ? enUS : zhCN));
|
||||
const naiveDateLocale = computed(() => (locale.value === 'en-US' ? dateEnUS : dateZhCN));
|
||||
</script>
|
||||
Reference in New Issue
Block a user