wangtao 2 năm trước cách đây
mục cha
commit
a3038070f6

+ 3 - 3
src/assets/styles/variables.scss

@@ -16,8 +16,8 @@ $sidebarTitle: #ccc;
 $menuLightBg:#ccc;
 $menuLightHover:#f0f1f5;
 $sidebarLightTitle: #001529;
-$subMenuBg:#161523;
-$subMenuHover:#004BAD;
+$subMenuBg:#13131C;
+$subMenuHover:#D7000F;
 $sideBarWidth: 200px;
 $zfb:#44B2FF;
 $wx:#51D455;
@@ -42,4 +42,4 @@ $qt:#FE9627;
     wx: $wx;
     xj: $xj;
     qt: $qt;
-}
+}

+ 6 - 1
src/layout/components/Sidebar/SidebarItem.vue

@@ -98,10 +98,15 @@ export default {
     margin-bottom:80px !important
 }
 .router-link-active:active,.router-link-active:hover,.item2:hover{
-    background-color: #004BAD !important;
+    // background-color: #004BAD !important;
     color:#fff !important;
 }
 #app .sidebar-container,.sidebar-container,.sidebar-logo-container{
     background-color: #1F1E2E;
 }
 </style>
+<style>
+.el-menu-item.is-active,.is-opened>.el-submenu__title svg,.is-opened>.el-submenu__title span,.is-opened>.el-submenu__title i{
+  color:#D7000F !important;
+}
+</style>

+ 2 - 2
vue.config.js

@@ -18,7 +18,7 @@ module.exports = {
     // 例如 https://www.yongtian.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.yongtian.vip/admin/,则设置 baseUrl 为 /admin/。
     publicPath: process.env.NODE_ENV === "production" ? "/vuedx/" : "/vuedx/",
     // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
-    outputDir: 'vuedx',
+    outputDir: 'dist',
     // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
     assetsDir: 'static',
     // 是否开启eslint保存检测,有效值:ture | false | 'error'
@@ -125,4 +125,4 @@ module.exports = {
                 }
             )
     }
-}
+}