sync with local storage

This commit is contained in:
2023-05-22 00:19:46 +02:00
parent 87c3ff52ef
commit 16c92ed33f
14 changed files with 95 additions and 67 deletions

View File

@@ -5,7 +5,7 @@ const emit = defineEmits<{
active: [active: boolean]
}>()
const active = ref(false)
const active = ref<boolean>(false)
watch(active, () => {
if (!active.value) {
query.value = ''
@@ -14,7 +14,7 @@ watch(active, () => {
emit('active', active.value)
})
const query = ref('')
const query = ref<string>('')
const results = computed<Note[]>(() => {
return query.value ? findNotes(query.value) : notes.value
})