src/layout/components/Logo/src/Logo.vue
@@ -19,6 +19,10 @@ const collapse = computed(() => appStore.getCollapse) const homePath = ref('/index') homePath.value = '/index' onMounted(() => { if (unref(collapse)) show.value = false }) @@ -64,7 +68,7 @@ layout !== 'classic' ? `${prefixCls}__Top` : '', 'flex !h-[var(--logo-height)] items-center cursor-pointer pl-8px relative decoration-none overflow-hidden' ]" to="/" :to="homePath" > <img class="h-[calc(var(--logo-height)-10px)] w-[calc(var(--logo-height)-10px)]"