过冬
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
1 deletions
-
apps/web-antdv-next/src/app.vue
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
import { computed } from 'vue'; |
|
|
|
import { computed, watch } from 'vue'; |
|
|
|
|
|
|
|
import { useAntdDesignTokens } from '@vben/hooks'; |
|
|
|
import { preferences, usePreferences } from '@vben/preferences'; |
|
|
|
@ -28,6 +28,14 @@ const tokenTheme = computed(() => { |
|
|
|
token: tokens, |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
watch( |
|
|
|
tokenTheme, |
|
|
|
(themeConfig) => { |
|
|
|
ConfigProvider.config({ theme: themeConfig }); |
|
|
|
}, |
|
|
|
{ immediate: true }, |
|
|
|
); |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
|