|
@@ -1480,7 +1480,8 @@ const getMusicInfo = async (res: any) => {
|
|
let partIndexs = query["part-index"] ? query["part-index"].split(",") : ["-1"] // -1为partIndex没有值的时候
|
|
let partIndexs = query["part-index"] ? query["part-index"].split(",") : ["-1"] // -1为partIndex没有值的时候
|
|
// 如果传入的是part-name,需要将part-name转换成part-index
|
|
// 如果传入的是part-name,需要将part-name转换成part-index
|
|
if (query["part-name"]) {
|
|
if (query["part-name"]) {
|
|
- let nameIdx = tracks.findIndex((item: any) => item == query["part-name"])
|
|
|
|
|
|
+ const partValue = decodeURIComponent(query["part-name"]) || ''
|
|
|
|
+ let nameIdx = tracks.findIndex((item: any) => item == partValue)
|
|
partIndexs = [nameIdx]
|
|
partIndexs = [nameIdx]
|
|
}
|
|
}
|
|
partIndexs = partIndexs.map((indexStr:string) => {
|
|
partIndexs = partIndexs.map((indexStr:string) => {
|