From 29ced42e4c6b9f7a0573836f79d438de5159f8c8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 10 Sep 2025 14:01:08 +0800 Subject: [PATCH] fix(logo): When you are on other pages, click the top logo to return to the default page of Smart Question, as shown below --- frontend/src/components/layout/LayoutDsl.vue | 36 ++++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/layout/LayoutDsl.vue b/frontend/src/components/layout/LayoutDsl.vue index afedd2db..f17b8129 100644 --- a/frontend/src/components/layout/LayoutDsl.vue +++ b/frontend/src/components/layout/LayoutDsl.vue @@ -42,6 +42,10 @@ const handleFoldExpand = () => { const toWorkspace = () => { router.push('/') } + +const toChatIndex = () => { + router.push('/chat/index') +} const route = useRoute() const showSysmenu = computed(() => { return route.path.includes('/system') @@ -57,17 +61,37 @@ const showSysmenu = computed(() => { width="30" height="30" :src="logo_fold_blue" - style="margin: 0 0 6px 5px" + @click="toChatIndex" + style="margin: 0 0 6px 5px; cursor: pointer" + /> + -