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:
authored and GitHub committed 2023-03-07 18:26:55 +08:00
1 parent a689406b28
commit 45cbfbf002
5 files changed
+113 -34

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
export function getCurrentDate() {
const date = new Date()
const day = date.getDate()
const month = date.getMonth() + 1
const year = date.getFullYear()
return `${year}-${month}-${day}`
}