From 6b7604951f61b7033cc643afe0e4ca67565a1a36 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Tue, 18 Jun 2024 15:39:41 +0800
Subject: [PATCH] fix: bug修改

---
 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