coder-common-thin-frontend/src/App.vue
Leo 797c42aea1 refactor(components): 重构核心组件代码块顺序
- 调整App.vue和所有通用组件为template→script→style顺序
- 涉及NovaDialog、UserCenter、IconSelect等核心组件
- 统一组件结构,提升代码可读性和维护性
- 符合项目新的Vue组件代码块排布规范
2025-07-07 00:16:44 +08:00

24 lines
669 B
Vue

<template>
<n-config-provider
class="wh-full" inline-theme-disabled :theme="appStore.colorMode === 'dark' ? darkTheme : null"
:locale="naiveLocale.locale" :date-locale="naiveLocale.dateLocale" :theme-overrides="appStore.theme"
>
<naive-provider>
<router-view />
</naive-provider>
</n-config-provider>
</template>
<script setup lang="ts">
import { naiveI18nOptions } from '@/utils'
import { darkTheme } from 'naive-ui'
import { useAppStore } from './store'
const appStore = useAppStore()
const naiveLocale = computed(() => {
return naiveI18nOptions[appStore.lang] ? naiveI18nOptions[appStore.lang] : naiveI18nOptions.enUS
},
)
</script>