diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 3bfac12f..8f28cb59 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -47,7 +47,7 @@ /> - + @@ -73,7 +73,7 @@ size="large" type="primary" class="greeting-btn" - @click="createNewChat" + @click="createNewChatSimple" > @@ -299,6 +299,12 @@ const goEmpty = () => { inputMessage.value = '' } +const createNewChatSimple = async () => { + currentChat.value = new ChatInfo() + currentChatId.value = undefined + await createNewChat() +} + const createNewChat = async () => { goEmpty() if (isAssistant.value) { @@ -760,9 +766,7 @@ defineExpose({ align-items: center; .welcome-content { - padding: 12px; - - width: fit-content; + width: 100%; max-width: 800px; display: flex; gap: 16px;