mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 15:47:23 +08:00
✨ feat: 添加新的歌手详情页面
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
export const useArtist = () => {
|
||||
const router = useRouter();
|
||||
|
||||
/**
|
||||
* 跳转到歌手详情页
|
||||
* @param id 歌手ID
|
||||
*/
|
||||
const navigateToArtist = (id: number) => {
|
||||
router.push(`/artist/detail/${id}`);
|
||||
};
|
||||
|
||||
return {
|
||||
navigateToArtist
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user