feat: 增加聊天记录导入导出清空的功能 (#369)

* feat: 增加聊天记录导入导出功能

* feat: 添加日期和图标

* perf: 移除触发事件改为 reload

---------

Co-authored-by: Nine9 <germmc99@gmail.com>
Co-authored-by: ChenZhaoYu <790348264@qq.com>
This commit is contained in:
Nine9
2023-03-07 18:26:55 +08:00
committed by GitHub
parent a689406b28
commit 45cbfbf002
5 changed files with 113 additions and 34 deletions

View File

@@ -19,8 +19,6 @@ interface Emit {
const active = ref('General')
const reload = ref(false)
const show = computed({
get() {
return props.visible
@@ -29,13 +27,6 @@ const show = computed({
emit('update:visible', visible)
},
})
function handleReload() {
reload.value = true
setTimeout(() => {
reload.value = false
}, 0)
}
</script>
<template>
@@ -48,7 +39,7 @@ function handleReload() {
<span class="ml-2">{{ $t('setting.general') }}</span>
</template>
<div class="min-h-[100px]">
<General v-if="!reload" @update="handleReload" />
<General />
</div>
</NTabPane>
<NTabPane name="Config" tab="Config">