From 7e465ce011a27b730d529fd912eae5f9552520b4 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期三, 07 八月 2024 17:48:35 +0800 Subject: [PATCH] 基本实现语言大模型页面布局及功能(未与模型对话接口调试) --- 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