style: 更新布局页面配色为科技蓝主题

This commit is contained in:
2026-01-21 21:14:51 +08:00
parent e68b37f376
commit a6bd08c569
+14 -7
View File
@@ -1,12 +1,12 @@
<template> <template>
<el-container style="height: 100vh"> <el-container style="height: 100vh">
<el-aside width="200px" style="background: #304156"> <el-aside width="200px" style="background: #1a237e">
<div class="logo">配置中心</div> <div class="logo">Kenaito配置中心</div>
<el-menu <el-menu
:default-active="activeMenu" :default-active="activeMenu"
background-color="#304156" background-color="#1a237e"
text-color="#bfcbd9" text-color="rgba(255, 255, 255, 0.7)"
active-text-color="#409EFF" active-text-color="#fff"
router router
> >
<template v-for="menu in menus"> <template v-for="menu in menus">
@@ -28,7 +28,7 @@
</el-aside> </el-aside>
<el-container> <el-container>
<el-header style="background: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0,21,41,.08)"> <el-header style="background: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0,21,41,.08)">
<span style="font-size: 16px; font-weight: bold">欢迎使用配置中心</span> <span style="font-size: 16px; font-weight: bold">欢迎使用 Kenaito配置中心</span>
<div> <div>
<span style="margin-right: 15px">{{ userInfo ? userInfo.name : '' }}</span> <span style="margin-right: 15px">{{ userInfo ? userInfo.name : '' }}</span>
<el-button type="text" @click="handleLogout">退出</el-button> <el-button type="text" @click="handleLogout">退出</el-button>
@@ -91,9 +91,16 @@ export default {
color: #fff; color: #fff;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
background: #263445; background: rgba(0, 0, 0, 0.2);
} }
.el-menu { .el-menu {
border-right: none; border-right: none;
} }
.el-menu-item:hover,
.el-submenu__title:hover {
background-color: rgba(255, 255, 255, 0.1) !important;
}
.el-menu-item.is-active {
background-color: rgba(255, 255, 255, 0.15) !important;
}
</style> </style>