From 2e6a6d161b48ad3eb0646e857acd3bd9053a8004 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Fri, 20 Mar 2026 09:38:09 +0800
Subject: [PATCH] 修改

---
 src/layout/components/Sidebar/Logo.vue |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue
index 1fa61e4..ebaaa8a 100644
--- a/src/layout/components/Sidebar/Logo.vue
+++ b/src/layout/components/Sidebar/Logo.vue
@@ -39,7 +39,7 @@
     console.log(firstPage.value,'firstPage.value')
     if(Cookies.get('configInfo')){
       const config = JSON.parse(Cookies.get('configInfo'))
-      if(config.logoPath != ''){
+      if(config && config.logoPath != ''){
         logoImg.value = import.meta.env.VITE_APP_BASE_API + "/" +  config.logoPath
       }else {
         logoImg.value = logo

--
Gitblit v1.9.2