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; + }); +});