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

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
+4 -1
View File
@@ -720,7 +720,10 @@ export default {
},
getDetailPageUrl(id) {
if (typeof id == 'string') id = id.replace('id_', '')
if (typeof id == 'string') {
if (/^https?:\/\//.test(id)) return id
id = id.replace('id_', '')
}
return `https://www.kugou.com/yy/special/single/${id}.html`
},
}