mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-23 22:34:44 +00:00
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:
@@ -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">
|
||||
|
Reference in New Issue
Block a user