Skip to content

Commit

Permalink
fix: 新建对话后跳转到当前对话
Browse files Browse the repository at this point in the history
  • Loading branch information
liou666 committed Apr 14, 2023
1 parent d54a12e commit d1060f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/NewChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ function changeSelectLanguage(newSelectLanguage: string) {
const addChat = (event: any) => {
event.preventDefault()
const uid = uuid()
store.addConversation({
language: selectLanguage.value,
voice: selectVoiceName.value,
desc: desc.value,
name: name.value,
key: uuid(),
key: uid,
avatar: getAvatarUrl(avatarList.value[currentAvatarIndex.value]),
rate: +rate.value,
})
store.changeCurrentKey(uid)
emits('close')
}
Expand Down

0 comments on commit d1060f9

Please sign in to comment.