mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-18 03:17:29 +08:00
8 lines
254 B
TypeScript
8 lines
254 B
TypeScript
|
|
import { IPlayMusicUrl } from "@/type/music";
|
||
|
|
import request from "@/utils/request";
|
||
|
|
|
||
|
|
// 根据音乐Id获取音乐播放URl
|
||
|
|
export const getMusicUrl = (id: number) => {
|
||
|
|
return request.get<IPlayMusicUrl>("/song/url", { params: { id: id } });
|
||
|
|
};
|