wenhongquan il y a 5 mois
Parent
commit
c7f174cd38
2 fichiers modifiés avec 13 ajouts et 12 suppressions
  1. 2 1
      frontend/package.json
  2. 11 11
      frontend/src/App.vue

+ 2 - 1
frontend/package.json

@@ -23,5 +23,6 @@
     "eslint-plugin-vue": "^8.0.3",
     "vite": "^4.0.0",
     "vite-plugin-static-copy": "^0.17.0"
-  }
+  },
+  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
 }

+ 11 - 11
frontend/src/App.vue

@@ -7,8 +7,8 @@
           <a-row align="middle" justify="space-between">
             <a-col>
               <a-space align="center">
-                <a-icon type="gateway" size="large" />
-                <h1 class="app-title">配线架配置系统</h1>
+                <!-- <a-icon type="gateway" size="large" /> -->
+                <div class="logo"></div>
               </a-space>
             </a-col>
             <a-col>
@@ -29,7 +29,7 @@
           breakpoint="lg"
           collapsed-width="80"
         >
-          <div class="logo"></div>
+          <div class="app-title">配线架配置系统</div>
           <a-menu
             mode="inline"
             :selected-keys="[selectedKey]"
@@ -131,6 +131,9 @@ onMounted(() => {
   font-size: 20px;
   font-weight: 600;
   color: #fff;
+    margin: 10px;
+    font-size: 15px;
+    margin-bottom: 0;;
 }
 
 /* 侧边栏样式 */
@@ -145,14 +148,10 @@ onMounted(() => {
 }
 
 .logo {
-  height: 64px;
-  background: rgba(255, 255, 255, 0.1);
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  color: #fff;
-  font-size: 18px;
-  font-weight: bold;
+  height: 60px;
+  width: 94px;
+  position: absolute;
+  top: 0px;
   background: url('/vite.svg') center no-repeat;
   background-size: contain;
 }
@@ -160,6 +159,7 @@ onMounted(() => {
 .side-menu {
   height: calc(100% - 64px);
   padding: 20px 0;
+  padding-top: 0px;
 }
 
 .side-menu .ant-menu-item {