panhui 2 лет назад
Родитель
Сommit
1e76c8517b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/chat/layout/sider/index.vue

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

@@ -19,8 +19,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, maskId: null })
+    // emitter.emit('changeMask',true)
+    chatStore.addHistory({ title: 'New Chat', uuid: Date.now(), isEdit: false, maskId: null })
     if (isMobile.value) appStore.setSiderCollapsed(true)
 }