更新代码
This commit is contained in:
1 parent
9875832019
commit
943c3708b0
125 files changed
+2009
-1728
No files matched your search
@@ -77,6 +77,7 @@ import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import { Plus, Search, Delete, MoreFilled } from '@element-plus/icons-vue';
|
||||
import NoteEditor from './components/edit.vue';
|
||||
import { getNotebookList, deleteNotebook } from '@/api/notebook';
|
||||
import { formatDate } from '@/utils/datetime';
|
||||
|
||||
const searchKeyword = ref('');
|
||||
const currentNoteId = ref(null);
|
||||
@@ -117,11 +118,7 @@ const formatTime = (dateStr) => {
|
||||
} else if (diff < 7 * day) {
|
||||
return `${Math.floor(diff / day)} 天前`;
|
||||
} else {
|
||||
return date.toLocaleDateString('zh-CN', {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
});
|
||||
return formatDate(date);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user