From da9fc065c34cfe528ce6702ac88a3852620a54d8 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Wed, 28 Aug 2024 13:42:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=20Naive=20UI=20?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 20 ++++++++++++-------- src/assets/js/naive-ui.js | 26 ++++++++++++++++++++++++++ src/components/AppAside.vue | 2 +- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3a005d2..1b0cee8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,12 +4,13 @@ :inline-theme-disabled="configProviderProps.inlineThemeDisabled" :locale="configProviderProps.locale" :style="{ - '--color-error': themeVars.errorColor, - '--color-info': themeVars.infoColor, - '--color-primary': themeVars.primaryColor, - '--color-success': themeVars.successColor, - '--color-warning': themeVars.warningColor, + '--color-error': themeCommon.errorColor, + '--color-info': themeCommon.infoColor, + '--color-primary': themeCommon.primaryColor, + '--color-success': themeCommon.successColor, + '--color-warning': themeCommon.warningColor, }" + :theme-overrides="themeOverrides" > @@ -28,7 +29,7 @@