feat(pages): add /my-stuff/stories
This commit is contained in:
parent
ff0787f75e
commit
294b1b0602
13
pages/my-stuff/stories.vue
Normal file
13
pages/my-stuff/stories.vue
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import SingleStory from "~/components/listings/singleStory.vue";
|
||||||
|
import { IStory } from "@models/stories";
|
||||||
|
const { data: stories } = await useApiFetch<{ stories: IStory[]; total: number }>("/user/me/stories");
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<a-list :grid="{ gutter: 6, lg: 2, sm: 1 }" :data-source="stories.stories">
|
||||||
|
<template #renderItem="{ item }">
|
||||||
|
<single-story :story="item" show-actions />
|
||||||
|
</template>
|
||||||
|
</a-list>
|
||||||
|
</template>
|
Loading…
Reference in New Issue
Block a user