|
|
@@ -46,10 +46,7 @@
|
|
|
shape="circle"
|
|
|
title="新建对话"
|
|
|
size="large"
|
|
|
- @click="
|
|
|
- messages = [];
|
|
|
- nextTick(() => startChat = true);
|
|
|
- "
|
|
|
+ @click="onNewChat"
|
|
|
/>
|
|
|
</div>
|
|
|
<McLayoutSender>
|
|
|
@@ -201,6 +198,10 @@ const onItemClick = (item:any) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+const onNewChat = () => {
|
|
|
+ messages.value = [];
|
|
|
+ startChat.value = false;
|
|
|
+};
|
|
|
const themeChange = () => {
|
|
|
if (themeService) {
|
|
|
theme.value = themeService.currentTheme.id === 'infinity-theme' ? 'light' : 'dark';
|