From 8ac10bf7a96732fe1654a003f3b84f64ba7540fb Mon Sep 17 00:00:00 2001 From: FEARmeR Date: Thu, 18 May 2023 15:05:18 +0100 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B8=D1=81=D0=BA=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=BB=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D0=BE,=20=D0=BD=D0=B0=D0=B4=D0=BE=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=B8=D1=82=D1=8C=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Presentation/Sections/PresentationSearch.vue | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/views/Presentation/Sections/PresentationSearch.vue b/src/views/Presentation/Sections/PresentationSearch.vue index 78d402a..a442194 100644 --- a/src/views/Presentation/Sections/PresentationSearch.vue +++ b/src/views/Presentation/Sections/PresentationSearch.vue @@ -9,10 +9,10 @@ const searchResultUsers = ref([]); const search = async () => { try { - const projectsResponse = await axios.get(`http://somebodyhire.me/api/projects/?search=${searchQuery.value}`); + const projectsResponse = await axios.get(`http://somebodyhire.me/api/search/projects/?search_query=${searchQuery.value}`); searchResultProjects.value = projectsResponse.data; - const usersResponse = await axios.get(`http://somebodyhire.me/api/profiles/?search=${searchQuery.value}`); + const usersResponse = await axios.get(`http://somebodyhire.me/api/search/profiles/?search_query=${searchQuery.value}`); searchResultUsers.value = usersResponse.data; } catch (error) { console.error('There was an error fetching the search results', error); @@ -30,16 +30,10 @@ const search = async () => { -
-
-

Projects Results

-

Number of results: {{ searchResultProjects.value.length }}

-
-
-

User Profile Results

-

Number of results: {{ searchResultUsers.value.length }}

-
+
+

Найдено проектов: {{ searchResultProjects.length}}

+

Найдено людей: {{ searchResultUsers.length}}