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