From 15792ad8baea4ab886dbfc58009847f26de45df8 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期五, 02 八月 2024 17:55:19 +0800
Subject: [PATCH] 1、利用viewport完成PC端页面响应式布局,其他端还未适配 2、基本完成语言大模型页面布局及部分功能 3、实现对于侧边栏图标在首页与其他页面时不同的展示风格 4、使用压缩后的背景图与首页gif(效果不好,跳转路由后仍会出现短暂背景图片未加载出情况) 5、修改项目浏览器页签图标

---
 src/components/tools/Logo.vue |   32 ++++++++++----------------------
 1 files changed, 10 insertions(+), 22 deletions(-)

diff --git a/src/components/tools/Logo.vue b/src/components/tools/Logo.vue
index 4af2aff..dc4d03c 100644
--- a/src/components/tools/Logo.vue
+++ b/src/components/tools/Logo.vue
@@ -4,15 +4,8 @@
       <span>鍥炲埌棣栭〉</span>
     </template>
     <div class="logo">
-      <router-link :to="routerLinkTo">
-
-        <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo棰滆壊鏍规嵁涓婚棰滆壊鍙樺寲 -->
-        <img v-if="navTheme === 'dark'" src="~@/assets/logo-white.png" alt="logo">
-        <img v-else src="~@/assets/logo.svg" alt="logo">
-        <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo棰滆壊鏍规嵁涓婚棰滆壊鍙樺寲 -->
-
-        <h1 v-if="showTitle">{{ title }}</h1>
-      </router-link>
+      <img src="~@/assets/icons/logo.png" alt="logo" @click="$router.push('/dashboard/Analysis')" v-if="$route.meta.title==='棣栭〉'">
+      <img src="~@/assets/icons/logo-dark.png" alt="logo" @click="$router.push('/dashboard/Analysis')" v-else>
     </div>
   </a-tooltip>
 </template>
@@ -37,14 +30,14 @@
       // 鐐瑰嚮Logo璺宠浆鍦板潃
       routerLinkTo: {
         type: Object,
-        default: () => ({name: 'dashboard'}),
-      },
+        default: () => ({ name: 'dashboard' })
+      }
     }
   }
 </script>
 <style lang="less" scoped>
   /*缂╁皬棣栭〉甯� 灞�椤堕儴鐨勯珮搴�*/
-  @height: 59px;
+  @height: 50px;
 
   .sider {
     box-shadow: none !important;
@@ -52,18 +45,13 @@
       height: @height !important;
       line-height: @height !important;
       box-shadow: none !important;
-      transition: background 300ms;
+      cursor: pointer;
+      background-color: transparent;
+      text-align: center;
 
-      a {
-        color: white;
-        &:hover {
-          color: rgba(255, 255, 255, 0.8);
-        }
+      img {
+        height: @height !important;
       }
-    }
-
-    &.light .logo {
-      background-color: @primary-color;
     }
   }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3