From 55dc5b9059e965e49c638c88b7b44c03027ced66 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 08 Jul 2024 15:15:27 +0800
Subject: [PATCH] fix: 道路尘负荷排名
---
src/layout/components/Sidebar/index.vue | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index cf483e9..5f9c4e2 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -1,6 +1,9 @@
<template>
<div :class="{ 'has-logo': showLogo }">
- <logo v-if="showLogo" :collapse="isCollapse" />
+ <logo
+ v-if="showLogo"
+ :collapse="isCollapse"
+ />
<!-- <div class="logo" style="display:flex;background: #0f4567;">
<img
style="width: 20px; height: 30px;margin: 8px 0 11px 18px"
@@ -38,7 +41,7 @@
export default {
components: { SidebarItem, Logo },
- data() {
+ data () {
return {
logo: require('@/assets/images/LOGO.png'),
logoDisplay: this.$store.state.logoDisplay
@@ -48,14 +51,15 @@
...mapGetters([
'sidebar'
]),
- sidebar() {
+ sidebar () {
+ console.log('������sidebar', this.$store.state.app.sidebar)
return this.$store.state.app.sidebar
},
- routes() {
- // console.log(this.$router.options.routes)
+ routes () {
+ console.log('������routes', this.$router.options.routes)
return this.$router.options.routes
},
- activeMenu() {
+ activeMenu () {
const route = this.$route
const { meta, path } = route
// if set path, the sidebar will highlight the path you set
@@ -64,13 +68,13 @@
}
return path
},
- showLogo() {
+ showLogo () {
return !this.$store.state.settings.sidebarLogo
},
- variables() {
+ variables () {
return variables
},
- isCollapse() {
+ isCollapse () {
return !this.sidebar.opened
}
}
--
Gitblit v1.8.0