Add WIP for content and creators
This commit is contained in:
@@ -27,11 +27,11 @@ const contents = ref();
|
||||
|
||||
onBeforeMount(async () => {
|
||||
if (props.creatorId == null) return
|
||||
|
||||
try {
|
||||
const response = await client.get(`/api/contents/user/${props.creatorId}`)
|
||||
if (response.status >= 200 && response.status < 300) {
|
||||
if (response.status >= 200 && response.status < 300) {
|
||||
contents.value = response.data
|
||||
console.table(contents.value)
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Failed to fetch posts", error);
|
||||
|
||||
Reference in New Issue
Block a user