From ffc896666f692cbc8ccfff054c5b497e2f1a4701 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 16 Jul 2024 17:39:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=96=E8=A7=82=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/login-layout/index.vue | 8 ++++---- ui/src/components/logo/LogoFull.vue | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/src/components/login-layout/index.vue b/ui/src/components/login-layout/index.vue index 4f8b185c7..382b6f616 100644 --- a/ui/src/components/login-layout/index.vue +++ b/ui/src/components/login-layout/index.vue @@ -20,11 +20,11 @@ defineOptions({ name: 'LoginLayout' }) const { user } = useStore() const fileURL = computed(() => { - if (user.themeInfo.loginImage) { - if (typeof user.themeInfo.loginImage === 'string') { - return user.themeInfo.loginImage + if (user.themeInfo?.loginImage) { + if (typeof user.themeInfo?.loginImage === 'string') { + return user.themeInfo?.loginImage } else { - return URL.createObjectURL(user.themeInfo.loginImage) + return URL.createObjectURL(user.themeInfo?.loginImage) } } else { return '' diff --git a/ui/src/components/logo/LogoFull.vue b/ui/src/components/logo/LogoFull.vue index c65499aaf..0c67339c8 100644 --- a/ui/src/components/logo/LogoFull.vue +++ b/ui/src/components/logo/LogoFull.vue @@ -1,5 +1,5 @@