From 62feaa429971245b5837c456ef830e87a75b7a14 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 28 十一月 2024 15:45:24 +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