235283e5 by 任超

style:系统标题

1 parent 9cdd6ef4
......@@ -2,7 +2,7 @@
<div class="navbar-con">
<div class="navbar" v-theme.background="mTheme">
<div class="logo">
<img v-if="logo" :src="logo" class="header-logo">
{{ title }}
</div>
<div class="backdrop">
<theme style="float: right;height: 26px;width: 26px;margin-top: 26px;" @change="themeChange" />
......@@ -24,6 +24,7 @@
</div>
</template>
<script>
import defaultSettings from '@/settings'
import { mapGetters } from 'vuex'
export default {
computed: {
......@@ -31,8 +32,7 @@ export default {
},
data () {
return {
logo: require('../../image/logo.png'),
noticeList: []
title: defaultSettings.title
}
},
methods: {
......@@ -54,6 +54,12 @@ export default {
<style lang="scss" scoped>
.navbar-con {
position: relative;
.logo {
color: #fff;
font-size: 26px;
font-weight: 700;
}
}
.NoticeBar {
......
......@@ -8,7 +8,6 @@
</h1>
</router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo">
<h1 class="sidebar-title">
{{ title }}
</h1>
......@@ -20,7 +19,6 @@
<script>
import defaultSettings from '@/settings'
const { title } = defaultSettings
import logonImg from '@/image/logo.png'
export default {
name: 'SidebarLogo',
props: {
......@@ -32,7 +30,6 @@ export default {
data () {
return {
title: title,
logo: logonImg
}
}
}
......