Browse Source

修改导航栏背景色

wxy 4 months ago
parent
commit
12bc2cf2ed

+ 3 - 3
src/components/Layout/components/layout/menu.vue

@@ -1,6 +1,6 @@
 <template>
   <a-layout style="min-height: 100vh">
-    <a-layout-sider theme="dark" :width="160" :collapsed-width="48" collapsible :trigger="null"
+    <a-layout-sider theme="dark" :width="160" :collapsed-width="50" collapsible :trigger="null"
       @collapse="evMenuSecondLongShow" v-model:collapsed="menuSecondLongShow">
       <div class="logo-layout">
         <div class="logo">
@@ -103,7 +103,7 @@ const evMouseLeavesSubMenu = () => {
 };
 // 鼠标滑动上去更新菜单栏 目前先屏蔽
 const evMenuGetFn = (routeItem, type) => {
-  // menuSecondData.value = routeItem;
+  menuSecondData.value = routeItem;
   // console.log(routeItem);
 };
 
@@ -160,7 +160,7 @@ watch(
 .layout-header {
   height: 48px;
   background: @bg_color_2;
-  padding-inline: 10px;
+  // padding-inline: 10px;
   box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
   z-index: 9;
 }

+ 1 - 1
src/components/Layout/components/layoutHeader/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="header">
+  <div class="header" :style="{background:designStore.getDarkTheme?'#fff':'#313132'}">
     <div class="layout_header">
       <!-- 面包屑 -->
       <div class="flex_item_bread">

+ 2 - 2
vite.config.js

@@ -61,9 +61,9 @@ export default defineConfig({
         hmr: true,
         proxy: {
             "/api": {
-                target: "http://sim.nanodreamtech.com",
+                // target: "http://sim.nanodreamtech.com",
                 // target: "http://127.0.0.1:3001",
-                // target: "http://sim.ainets.net",
+                target: "http://sim.ainets.net",
                 changeOrigin: true,
                 ws: true,
                 secure: true,