From e39acb3659c059cbedc37ff6592ef7b3355bd20c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Wed, 09 Oct 2024 10:46:59 +0800
Subject: [PATCH] bug修改
---
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