|
@@ -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)
|
|
|
}
|
|
}
|
|
|
|
|
|