diff --git a/frontend/src/views/chat/ChatListContainer.vue b/frontend/src/views/chat/ChatListContainer.vue index 3a154b2b..d318f6e8 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 3c791d6e..aca02f2c 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;