Update Back-end connection & fonction Front-end
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<DefaultLayout style="margin-bottom: 30px"></DefaultLayout>
|
||||
|
||||
<!--
|
||||
<!-- Router Info and user informations
|
||||
<v-container style="margin-top: -1%; margin-bottom: 2%;">
|
||||
<v-row>
|
||||
<v-col align="center">
|
||||
@@ -246,9 +246,6 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</v-col>
|
||||
|
||||
|
||||
@@ -322,7 +319,6 @@ import StripePayment from '../views/StripePayment.vue';
|
||||
|
||||
const PublicCreatorData = ref(null);
|
||||
const selectedUsername = ref('');
|
||||
const manualUsername = ref('');
|
||||
const route = useRoute();
|
||||
const client = useClient();
|
||||
|
||||
@@ -348,7 +344,7 @@ let navigationItems = [
|
||||
const fetchUser = async (username) => {
|
||||
console.log(`Fetching user: ${username}`);
|
||||
try {
|
||||
const response = await client.get(`/api/GetCreatorInfo`, {
|
||||
const response = await client.get(`/api/Users`, {
|
||||
params: {
|
||||
UserName: username
|
||||
}
|
||||
@@ -382,10 +378,6 @@ const updateUser = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const manualFetch = () => {
|
||||
fetchUser(manualUsername.value);
|
||||
};
|
||||
|
||||
onMounted(updateUser);
|
||||
|
||||
watch(() => route.params.username, updateUser);
|
||||
|
||||
Reference in New Issue
Block a user