From ad6c6aa9c1873f4289db041b097ac0313273505f Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Tue, 26 May 2026 16:33:40 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E7=B3=BB=E7=BB=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- .eslintrc-auto-import.json | 4 ++++ src/layout/components/Sidebar/Logo.vue | 21 +++++++++++++++++---- src/views/systemList/role/role.vue | 2 +- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json index 2ca3adf..d979925 100644 --- a/.eslintrc-auto-import.json +++ b/.eslintrc-auto-import.json @@ -5,6 +5,10 @@ "ComputedRef": true, "DirectiveBinding": true, "EffectScope": true, + "ElLoading": true, + "ElMessage": true, + "ElMessageBox": true, + "ElNotification": true, "ExtractDefaultPropTypes": true, "ExtractPropTypes": true, "ExtractPublicPropTypes": true, diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index c076beb..5069b27 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -2,12 +2,12 @@ @@ -19,6 +19,7 @@ import logo from '@/assets/logo/logo.png'; import { useSettingsStore } from '@/store/modules/settings'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; import { NavTypeEnum } from '@/enums/NavTypeEnum'; +import { getDemo } from '@/api/systemList/index'; defineProps({ collapse: { @@ -52,6 +53,18 @@ const getLogoTextColor = computed(() => { } return sideTheme.value === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor; }); + +// 获取Logo图片 +const logoUrl = ref(); +const logoName = ref(); +onMounted(() => { + getDemo().then((res) => { + console.log('系统11111111111', res); + + logoName.value = res.data.name; + logoUrl.value = res.data.url; + }); +});