🐛 Fixed SQLite time field issue

This commit is contained in:
2025-09-29 00:59:45 +08:00
parent 3077d5a7c5
commit 4d6a4ff79f
10 changed files with 43 additions and 135 deletions

View File

@@ -150,12 +150,12 @@ export const useDocumentStore = defineStore('document', () => {
const doc = documents.value[docId];
if (doc) {
doc.title = title;
doc.updatedAt = new Date();
doc.updatedAt = new Date().toISOString();
}
if (currentDocument.value?.id === docId) {
currentDocument.value.title = title;
currentDocument.value.updatedAt = new Date();
currentDocument.value.updatedAt = new Date().toISOString();
}
return true;