From 67e80dd003afb30ab67ac8c4e63bee4abb34bb7a Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 16 十月 2024 15:03:27 +0800 Subject: [PATCH] 修改保存的id和修改展示页面 --- src/layout/components/Logo/src/Logo.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/layout/components/Logo/src/Logo.vue b/src/layout/components/Logo/src/Logo.vue index d241130..2d1cfb6 100644 --- a/src/layout/components/Logo/src/Logo.vue +++ b/src/layout/components/Logo/src/Logo.vue @@ -2,6 +2,7 @@ import { computed, onMounted, ref, unref, watch } from 'vue' import { useAppStore } from '@/store/modules/app' import { useDesign } from '@/hooks/web/useDesign' +import * as authUtil from "@/utils/auth"; defineOptions({ name: 'Logo' }) @@ -13,11 +14,15 @@ const show = ref(true) +const homePath = ref('/index') + const title = computed(() => appStore.getTitle) const layout = computed(() => appStore.getLayout) const collapse = computed(() => appStore.getCollapse) + +homePath.value = '/index' onMounted(() => { if (unref(collapse)) show.value = false @@ -64,7 +69,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)]" -- Gitblit v1.9.3