Skip to content

Commit

Permalink
clicking search refresh result
Browse files Browse the repository at this point in the history
  • Loading branch information
Hy0tic committed Oct 1, 2024
1 parent 0dc51db commit 35ddff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/melloPhotoStorage/query.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
const images = ref<ImageInfo[]>([]);
const search = () => {
const search = async () => {
// Build query parameters
const query = {
pageNumber: pageNumber.value,
Expand All @@ -85,6 +85,7 @@
// Navigate to the same route with new query parameters
router.push({ query });
await fetchImages();
};
const fetchImages = async () => {
Expand All @@ -96,6 +97,7 @@
searchQuery: searchQuery.value
}
});
console.log("fetched images");
images.value = response.imageArray; // Adjust according to your API response structure
totalRecords.value = response.totalImageCount;
};
Expand Down

0 comments on commit 35ddff8

Please sign in to comment.