✨ (historic notes) add history note page
This commit is contained in:
16
src/modules/note/hooks/useNotes.ts
Normal file
16
src/modules/note/hooks/useNotes.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
|
||||
import { computed } from 'vue'
|
||||
|
||||
export const useNotes = () => {
|
||||
const store = useUserRepoStore()
|
||||
|
||||
const notes = computed(() => {
|
||||
console.log(store.files)
|
||||
|
||||
return store.files
|
||||
})
|
||||
|
||||
return {
|
||||
notes
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user