sync with local storage
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user