sync with local storage

This commit is contained in:
2023-05-22 00:19:46 +02:00
parent 6dd8c2d524
commit c2cbe513d1
14 changed files with 95 additions and 67 deletions

View File

@@ -17,7 +17,7 @@ const emit = defineEmits<{
update: [note: Note]
}>()
const noteTitle = ref(props.note.title)
const noteTitle = ref<string>(props.note.title)
watch(noteTitle, () => {
const updatedNote: Note = { ...props.note, title: noteTitle.value }
emit('update', updatedNote)