mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-15 09:50:48 +02:00
Loadingpage
MangaCardList Manga with Tag Page
This commit is contained in:
@@ -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[]> => {
|
||||
|
Reference in New Issue
Block a user