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

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