新增打开收藏的在线列表的对应平台详情页功能

This commit is contained in:
lyswhut
2022-02-11 16:51:39 +08:00
parent 68827f7697
commit 777551cb43
16 changed files with 100 additions and 8 deletions
@@ -191,4 +191,8 @@ export default {
}
})
},
// getDetailPageUrl(id) {
// return `http://www.kuwo.cn/rankList/${id}`
// },
}
+7
View File
@@ -307,6 +307,13 @@ export default {
getTags() {
return Promise.all([this.getTag(), this.getHotTag()]).then(([tags, hotTag]) => ({ tags, hotTag, source: 'kw' }))
},
getDetailPageUrl(id) {
if (/^digest-/.test(id)) {
let result = id.split('__')
id = result[1]
}
return `http://www.kuwo.cn/playlist_detail/${id}`
},
}
// getList