SEO for collection page.

This commit is contained in:
2025-07-31 16:23:55 +08:00
parent 4ae7a19cc9
commit 63ebbebb02
2 changed files with 28 additions and 1 deletions

View File

@@ -33,6 +33,11 @@ export default function CollectionPage() {
return;
}
if (app.getPreFetchData()?.collection?.id === idInt) {
setCollection(app.getPreFetchData().collection);
return;
}
network.getCollection(idInt).then((res) => {
if (res.success) {
setCollection(res.data!);
@@ -43,7 +48,7 @@ export default function CollectionPage() {
});
}
});
}, [resourcesKey]);
}, [id]);
const toBeDeletedRID = useRef<number | null>(null);