From f88d2029c7b2c66fcf0a9dffdc55da75b939c2ea Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Tue, 12 Aug 2025 10:55:54 +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