panhui %!s(int64=2) %!d(string=hai) anos
pai
achega
3c81138526
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/chat/layout/sider/index.vue

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

@@ -18,8 +18,8 @@ const show = ref(false)
 const collapsed = computed(() => appStore.siderCollapsed)
 const collapsed = computed(() => appStore.siderCollapsed)
 
 
 function handleAdd() {
 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)
     if (isMobile.value) appStore.setSiderCollapsed(true)
 }
 }