新增列表多选操作功能
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 获取音乐音质
|
||||
* @param {*} info
|
||||
* @param {*} type
|
||||
*/
|
||||
const types = ['flac', 'ape', '320k', '192k', '128k']
|
||||
export const getMusicType = (info, type) => {
|
||||
const rangeType = types.slice(types.indexOf(type))
|
||||
for (const type of rangeType) {
|
||||
if (info._types[type]) return type
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user