diff --git a/frontend/src/views/chat/ChatListContainer.vue b/frontend/src/views/chat/ChatListContainer.vue
index f8a54a81..0e2c2104 100644
--- a/frontend/src/views/chat/ChatListContainer.vue
+++ b/frontend/src/views/chat/ChatListContainer.vue
@@ -114,25 +114,12 @@ function goEmpty(func?: (...p: any[]) => void, ...params: any[]) {
const createNewChat = async () => {
goEmpty(doCreateNewChat)
}
-const isAssistantRepeatEmpty = () => {
- return (
- isAssistant.value &&
- (_currentChatId.value === null || typeof _currentChatId.value === 'undefined')
- )
-}
+
async function doCreateNewChat() {
if (isAssistant.value) {
- if (isAssistantRepeatEmpty()) {
- return
- }
- const assistantChat = await assistantStore.setChat()
- if (assistantChat) {
- onChatCreated(assistantChat)
- }
return
- } else {
- chatCreatorRef.value?.showDs()
}
+ chatCreatorRef.value?.showDs()
}
function onClickHistory(chat: Chat) {
diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue
index 185aa75b..81dd036a 100644
--- a/frontend/src/views/chat/index.vue
+++ b/frontend/src/views/chat/index.vue
@@ -419,22 +419,12 @@ const createNewChatSimple = async () => {
currentChatId.value = undefined
await createNewChat()
}
-const isAssistantRepeatEmpty = () => {
- return (
- isAssistant.value &&
- (currentChatId.value === null || typeof currentChatId.value === 'undefined')
- )
-}
+
const createNewChat = async () => {
goEmpty()
- if (isAssistantRepeatEmpty()) {
- return
- }
if (isAssistant.value) {
- const assistantChat = await assistantStore.setChat()
- if (assistantChat) {
- onChatCreatedQuick(assistantChat as any)
- }
+ currentChat.value = new ChatInfo()
+ currentChatId.value = undefined
return
}
chatCreatorRef.value?.showDs()
diff --git a/frontend/src/views/embedded/index.vue b/frontend/src/views/embedded/index.vue
index 5bea8c07..4a7b4e97 100644
--- a/frontend/src/views/embedded/index.vue
+++ b/frontend/src/views/embedded/index.vue
@@ -7,13 +7,8 @@
{{ $t('embedded.intelligent_customer_service') }}
-
-
+
+