panhui 2 жил өмнө
parent
commit
3c81138526

+ 2 - 2
src/views/chat/layout/sider/index.vue

@@ -18,8 +18,8 @@ const show = ref(false)
 const collapsed = computed(() => appStore.siderCollapsed)
 
 function handleAdd() {
-    emitter.emit('changeMask', true)
-    // chatStore.addHistory({ title: 'New Chat', uuid: Date.now(), isEdit: false })
+    // emitter.emit('changeMask', true)
+    chatStore.addHistory({ title: 'New Chat', uuid: Date.now(), isEdit: false, maskId: null })
     if (isMobile.value) appStore.setSiderCollapsed(true)
 }