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:
7
src/utils/functions/index.ts
Normal file
7
src/utils/functions/index.ts
Normal 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}`
|
||||
}
|
||||
Reference in New Issue
Block a user