作品页面添加上下一个切换

This commit is contained in:
2025-08-21 14:07:14 +08:00
parent 9363c70402
commit f2e38f4355
3 changed files with 200 additions and 2 deletions
+8 -1
View File
@@ -260,7 +260,14 @@ const getImageUrl = (originalUrl: string) => {
// 点击作品
const handleArtworkClick = (artwork: Artwork) => {
router.push(`/artwork/${artwork.id}`);
// 传递作者ID和作品类型信息,用于导航
router.push({
path: `/artwork/${artwork.id}`,
query: {
artistId: artist.value?.id.toString(),
artworkType: artworkType.value
}
});
};
// 清除错误