2025-07-10 20:05:35 +08:00

28 lines
935 B
Vue

<template>
<n-config-provider :date-locale="dateZhCN" :locale="zhCN" :theme-overrides="themeOverrides">
<n-dialog-provider>
<n-message-provider>
<InitAxiosInterceptors /> <!-- 新增的子组件 -->
<router-view></router-view>
</n-message-provider>
</n-dialog-provider>
</n-config-provider>
</template>
<script setup lang='ts'>
import { type GlobalThemeOverrides, dateZhCN, zhCN } from "naive-ui";
import InitAxiosInterceptors from "@/components/InitAxiosInterceptors.vue";
const themeOverrides: GlobalThemeOverrides = {
// 待配置主题色
'common': {
'primaryColor': '#3D8EFF', // 主色保持不变的蓝色
'primaryColorHover': '#6AA1FF', // 比主色亮20%的浅蓝色
'primaryColorPressed': '#2B7AEB',// 比主色深10%的深蓝色
'primaryColorSuppl': '#5A95FF' // 介于主色和hover之间的蓝色
},
};
</script>
<style scoped lang='scss'></style>