From 0577efe43a36f3df015d15e92182cead52a4cf92 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Wed, 19 Apr 2023 01:37:42 +0800 Subject: [PATCH] add side menu and info --- src/components/common/LeftNavigator.vue | 1 + src/components/common/SettingPanel.vue | 2 +- src/components/conversation/NewMessageBox.vue | 12 ++++++ src/i18n/zh/conversation/message.ts | 4 +- src/layouts/Conversation.vue | 39 ++++++++++++++++++- src/pages/conversation/Main.vue | 1 + src/plugins/font-awesome.ts | 2 + 7 files changed, 57 insertions(+), 4 deletions(-) diff --git a/src/components/common/LeftNavigator.vue b/src/components/common/LeftNavigator.vue index 5c6832e8..b62f0f2d 100644 --- a/src/components/common/LeftNavigator.vue +++ b/src/components/common/LeftNavigator.vue @@ -90,6 +90,7 @@ export default defineComponent({ onDeleteConversation(id: string) { const newConversations = this.conversations.filter((i: IConversation) => i.id !== id); this.$store.dispatch('setConversations', newConversations); + this.onNewConversation(); } } }); diff --git a/src/components/common/SettingPanel.vue b/src/components/common/SettingPanel.vue index 9ec6e314..d02fd910 100644 --- a/src/components/common/SettingPanel.vue +++ b/src/components/common/SettingPanel.vue @@ -1,5 +1,5 @@