diff --git a/apps/web-antd/src/views/_core/profile/profile-panel.vue b/apps/web-antd/src/views/_core/profile/profile-panel.vue index 69f46e2b..09128b44 100644 --- a/apps/web-antd/src/views/_core/profile/profile-panel.vue +++ b/apps/web-antd/src/views/_core/profile/profile-panel.vue @@ -3,6 +3,8 @@ import type { UserProfile } from '#/api/system/profile/model'; import { computed } from 'vue'; +import { usePreferences } from '@vben/preferences'; + import { Card, Descriptions, @@ -26,6 +28,12 @@ const avatar = computed( props.profile?.user.avatar ?? 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png', ); + +const { isDark } = usePreferences(); +const poetrySrc = computed(() => { + const color = isDark.value ? 'white' : 'gray'; + return `https://v2.jinrishici.com/one.svg?font-size=12&color=${color}`; +});