From aee9443fe0a496fb872215b40e7fc3f60b41da47 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Wed, 21 May 2025 08:20:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E7=99=BB=E5=BD=95=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=92=8C=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/NavBar/components/NavbarRight.vue | 10 +++++----- src/views/login/index.vue | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue index 2326d553..ba00392f 100644 --- a/src/layout/components/NavBar/components/NavbarRight.vue +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -143,12 +143,12 @@ function logout() { .layout-top .navbar__right--white > *, .layout-mix .navbar__right--white > * { color: #fff; +} - // 强制所有svg图标为白色(包括通知图标) - :deep(svg) { - color: #fff; - fill: #fff; - } +// 添加更强力的选择器,确保能影响到深层嵌套的图标 +.layout-top .navbar__right--white :deep([class^="i-svg:"]), +.layout-mix .navbar__right--white :deep([class^="i-svg:"]) { + color: #fff !important; } .dark .navbar__right > *:hover { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index fdb0a55d..a9a1c17e 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -64,7 +64,21 @@ const formComponents = {