diff --git a/src/components/CustomPagination.vue b/src/components/CustomPagination.vue
index 33116d2..63e04ce 100644
--- a/src/components/CustomPagination.vue
+++ b/src/components/CustomPagination.vue
@@ -11,11 +11,8 @@
\ No newline at end of file
diff --git a/src/components/Search/CardSearchResult.vue b/src/components/Search/CardSearchResult.vue
index 90fc203..1f485d0 100644
--- a/src/components/Search/CardSearchResult.vue
+++ b/src/components/Search/CardSearchResult.vue
@@ -1,9 +1,14 @@
-
![]()
+
+
+
{{ props.data.category.name }}
-
+
{{ props.data.name }}
-
+
diff --git a/src/components/Search/SearchHandle.vue b/src/components/Search/SearchHandle.vue
index 0e1a216..bfddd39 100644
--- a/src/components/Search/SearchHandle.vue
+++ b/src/components/Search/SearchHandle.vue
@@ -32,7 +32,14 @@
/>
-
Pagination here
+
+
+
@@ -42,6 +49,8 @@
import { onMounted, reactive } from "vue";
import CardSearchResult from "@/components/Search/CardSearchResult.vue";
import Icon from "@/components/Icon.vue";
+ import CustomPagination from "@/components/CustomPagination.vue";
+
const isShowSearchPopup = defineModel("isShowSearchPopup", {
type: Boolean,
required: true,
@@ -52,13 +61,19 @@
const ExamRepository = RepositoryFactory.get("exams");
const searchText = ref("");
const isLoading = ref(false);
-
+ const currentPage = ref(1);
+
async function handleSubmit() {
isLoading.value = true;
- const { data } = await ExamRepository.search(searchText.value, 1);
+ const { data } = await ExamRepository.search(searchText.value, currentPage.value);
searchData.value = data;
isLoading.value = false;
console.log(searchData.value);
}
+
+ function changePage(page) {
+ currentPage.value = page;
+ handleSubmit();
+ }
\ No newline at end of file