From d098e2e3a16837ad0a61c1a2df93b27c7d16bfd2 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 06 九月 2024 17:10:29 +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