fix: 修复 build 错误
This commit is contained in:
parent
e689d35072
commit
779fa67b6c
@ -151,7 +151,6 @@ export async function getLyricsBySongId(
|
|||||||
): Promise<string | null> {
|
): Promise<string | null> {
|
||||||
let result: AxiosResponse<any, any>;
|
let result: AxiosResponse<any, any>;
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- debug
|
|
||||||
result = await axios.get(LYRICS_URL, {
|
result = await axios.get(LYRICS_URL, {
|
||||||
params: {
|
params: {
|
||||||
id: songId,
|
id: songId,
|
||||||
@ -164,7 +163,6 @@ export async function getLyricsBySongId(
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return -- ddd
|
|
||||||
return result.data.klyric?.lyric || result.data.lrc?.lyric;
|
return result.data.klyric?.lyric || result.data.lrc?.lyric;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user