修复使用链接导入的歌单无法在我的列表打开原歌单详情页的问题

This commit is contained in:
lyswhut
2022-03-11 12:02:59 +08:00
parent 65027fceba
commit a363c5525b
7 changed files with 45 additions and 19 deletions
+5
View File
@@ -357,6 +357,11 @@ export default {
},
getDetailPageUrl(id) {
if (/playlist\/index\.html\?/.test(id)) {
id = id.replace(/.*(?:\?|&)id=(\d+)(?:&.*|$)/, '$1')
} else if (this.regExps.listDetailLink.test(id)) {
id = id.replace(this.regExps.listDetailLink, '$1')
}
return `https://music.migu.cn/v3/music/playlist/${id}`
},
}