Loadingpage

MangaCardList
Manga with Tag Page
This commit is contained in:
2025-10-14 15:37:58 +02:00
parent a81212537c
commit 570d8014a1
7 changed files with 69 additions and 19 deletions

View File

@@ -85,16 +85,19 @@ const connectorClick = (c: MangaConnector) => {
const searchResult = useState<MinimalManga[]>(() => []);
const expanded = useState(() => -1);
const searchQuery = useState<string>(() => '');
const performSearch = () => {
const performSearch = async () => {
if (!query.value) return;
busy.value = true;
searchQuery.value = query.value;
search(query.value)
await search(query.value)
.then((data) => {
searchResult.value = data;
activeStep.value = 2;
})
.finally(() => (busy.value = false));
.finally(() => {
refreshNuxtData(FetchKeys.Manga.All);
busy.value = false;
});
};
const search = async (query: string): Promise<MinimalManga[]> => {