2025-11-23 14:04:20 +08:00
|
|
|
|
<template>
|
2026-01-08 09:17:46 +08:00
|
|
|
|
<a-config-provider :theme="themeConfig">
|
|
|
|
|
|
<router-view />
|
|
|
|
|
|
</a-config-provider>
|
2025-11-23 14:04:20 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2026-01-09 18:14:35 +08:00
|
|
|
|
import { ConfigProviderProps } from "ant-design-vue"
|
2026-01-08 09:17:46 +08:00
|
|
|
|
|
2026-01-09 18:14:35 +08:00
|
|
|
|
// 配置主题色为蓝色(Blue)- 使用 Ant Design 蓝色色板 blue-6
|
|
|
|
|
|
// 参考:https://ant.design/docs/spec/colors-cn#%E7%B3%BB%E7%BB%9F%E7%BA%A7%E8%89%B2%E5%BD%A9%E4%BD%93%E7%B3%BB
|
|
|
|
|
|
const themeConfig: ConfigProviderProps["theme"] = {
|
2026-01-08 09:17:46 +08:00
|
|
|
|
token: {
|
2026-01-09 18:14:35 +08:00
|
|
|
|
colorPrimary: "#0958d9", // 主色调 - 蓝色(blue-6)
|
|
|
|
|
|
colorSuccess: "#52c41a", // 成功色 - 绿色(默认)
|
|
|
|
|
|
colorInfo: "#0958d9", // 信息色 - 蓝色
|
|
|
|
|
|
colorLink: "#0958d9", // 链接色 - 蓝色
|
2026-01-08 09:17:46 +08:00
|
|
|
|
borderRadius: 6, // 圆角
|
|
|
|
|
|
},
|
|
|
|
|
|
algorithm: undefined, // 使用默认算法
|
|
|
|
|
|
}
|
2025-11-23 14:04:20 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
2026-01-09 18:14:35 +08:00
|
|
|
|
<style scoped lang="scss"></style>
|