merge 合并logo到main

This commit is contained in:
lideqin
2023-12-06 16:02:12 +08:00
committed by 赵霄
parent d6f59523a5
commit 46feaf778f
2 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
:collapsible="collapsible" :collapsible="collapsible"
v-model="collapsed" v-model="collapsed"
:trigger="null"> :trigger="null">
<logo /> <logo :show-title="!collapsed"/>
<s-menu <s-menu
:collapsed="collapsed" :collapsed="collapsed"
:menu="menus" :menu="menus"
+10 -5
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="logo"> <div class="logo" :class="!showTitle ? 'h1-logo' : ''">
<router-link :to="routerLinkTo"> <router-link :to="routerLinkTo">
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 --> <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
@@ -7,7 +7,9 @@
<!-- <img v-else src="~@/assets/logo.png" alt="logo">--> <!-- <img v-else src="~@/assets/logo.png" alt="logo">-->
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 --> <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
<h1 v-if="showTitle">{{ title }}</h1> <img v-if="showTitle" src='../../assets/image/analysisLogo.png' alt="logo"/>
<!--<img src="~@/assets/image/analysisLogo.png" alt="logo">-->
<h1 v-else>{{ title }}</h1>
</router-link> </router-link>
</div> </div>
</template> </template>
@@ -21,7 +23,7 @@ export default {
props: { props: {
title: { title: {
type: String, type: String,
default: '研发云平台', default: 'SRMS',
required: false required: false
}, },
showTitle: { showTitle: {
@@ -43,7 +45,9 @@ export default {
.sider { .sider {
box-shadow: none !important; box-shadow: none !important;
.h1-logo {
padding-left: 10px;
}
.logo { .logo {
height: @height !important; height: @height !important;
line-height: @height !important; line-height: @height !important;
@@ -52,7 +56,8 @@ export default {
background-color: transparent !important; background-color: transparent !important;
h1 { h1 {
color: #222222 !important; color: @primary-color !important;
font-weight: 700;
} }
a { a {