Skip to content

Commit 26e15b4

Browse files
committed
chore(notes): read notes from Pinia store in NoteList
1 parent db2d97c commit 26e15b4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/views/NoteList.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
</template>
1111

1212
<script setup lang="ts">
13-
import { ref } from 'vue'
13+
import { useNoteStore } from '../stores/noteStore'
1414
import NoteCard from '@/components/NoteCard.vue'
1515
16-
const notes = ref([
17-
{ id: 1, title: 'Erste Notiz', content: 'Inhalt der ersten Notiz' },
18-
{ id: 2, title: 'Zweite Notiz', content: 'Inhalt der zweiten Notiz' },
19-
])
16+
const store = useNoteStore()
17+
const notes = store.notes
2018
</script>
2119

2220
<style scoped>

0 commit comments

Comments
 (0)