@@ -9,11 +9,13 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { useFleetingNotes } from '@/modules/note/hooks/useFleetingNotes'
|
||||
import { useFolderNotes } from '@/modules/note/hooks/useFolderNotes'
|
||||
import { defineAsyncComponent, defineComponent, toRefs } from 'vue'
|
||||
|
||||
const FluxNote = defineAsyncComponent(() => import('@/components/FluxNote.vue'))
|
||||
|
||||
const FLEETING_NOTES_FOLDER = 'fleeting-notes'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FleetingNotes',
|
||||
components: {
|
||||
@@ -25,7 +27,11 @@ export default defineComponent({
|
||||
},
|
||||
setup(props) {
|
||||
const refProps = toRefs(props)
|
||||
const { content } = useFleetingNotes(refProps.user, refProps.repo)
|
||||
const { content } = useFolderNotes(
|
||||
FLEETING_NOTES_FOLDER,
|
||||
refProps.user,
|
||||
refProps.repo
|
||||
)
|
||||
|
||||
return {
|
||||
content
|
||||
|
||||
Reference in New Issue
Block a user