From 1c105138b5597686ceec7369192f93fb16182c26 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 4 Feb 2026 15:13:50 +0800 Subject: [PATCH] perf: Optimize Assistant Session Creation Interaction --- frontend/src/views/chat/ChatListContainer.vue | 12 ++++++++++-- frontend/src/views/chat/index.vue | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/chat/ChatListContainer.vue b/frontend/src/views/chat/ChatListContainer.vue index 3a154b2b6..d318f6e86 100644 --- a/frontend/src/views/chat/ChatListContainer.vue +++ b/frontend/src/views/chat/ChatListContainer.vue @@ -47,6 +47,10 @@ const emits = defineEmits([ const assistantStore = useAssistantStore() const isCompletePage = computed(() => !assistantStore.getAssistant || assistantStore.getEmbedded) +const selectAssistantDs = computed(() => { + return assistantStore.getAssistant && !assistantStore.getAutoDs +}) + const search = ref() const _currentChatId = computed({ @@ -147,7 +151,7 @@ const createNewChat = async () => { } async function doCreateNewChat() { - if (!isCompletePage.value) { + if (!isCompletePage.value && !selectAssistantDs.value) { return } chatCreatorRef.value?.showDs() @@ -255,7 +259,11 @@ function onChatRenamed(chat: Chat) { /> - + diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 3c791d6ee..aca02f2cb 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -1141,7 +1141,7 @@ onMounted(() => { } } .hidden-sidebar-btn { - z-index: 1; + z-index: 11; position: absolute; padding: 16px; top: 0;