fix: 🐛 登录背景和导航栏图标样式问题修复

This commit is contained in:
Ray.Hao
2025-05-21 08:20:53 +08:00
parent 4045548c18
commit aee9443fe0
2 changed files with 19 additions and 5 deletions

View File

@@ -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 {

View File

@@ -64,7 +64,21 @@ const formComponents = {
<style lang="scss" scoped>
.login {
position: relative;
z-index: 1;
}
// 添加伪元素作为背景层
.login::before {
position: fixed;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
content: "";
background: url("@/assets/images/login-bg.svg");
background-position: center center;
background-size: cover;
}