mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-08-12 08:50:38 +00:00
fix(voice): load created podcasts in upload example
This commit is contained in:
parent
93b3e624d8
commit
9608da9b96
@ -269,17 +269,23 @@
|
||||
this.loading = true
|
||||
try {
|
||||
const res = await axios({
|
||||
url: `/voicelist/search?cookie=${localStorage.getItem('cookie')}`,
|
||||
url: `/voicelist/my/created?limit=100&cookie=${localStorage.getItem(
|
||||
'cookie',
|
||||
)}`,
|
||||
})
|
||||
|
||||
console.info(res.data.data)
|
||||
this.voicelist = res.data.data.list || []
|
||||
this.voicelist = res.data.data.data || []
|
||||
this.voicelist.forEach(async (i) => {
|
||||
try {
|
||||
const res2 = await axios({
|
||||
url: `/voicelist/list?voiceListId=${i.voiceListId}&limit=5`,
|
||||
url: `/voicelist/list?voiceListId=${
|
||||
i.voiceListId
|
||||
}&limit=5&cookie=${localStorage.getItem('cookie')}`,
|
||||
})
|
||||
i.voiceListData = res2.data.data.list || []
|
||||
i.voiceListData = res2.data.data
|
||||
? res2.data.data.list || []
|
||||
: []
|
||||
console.info(res2)
|
||||
} catch (err) {
|
||||
console.error('获取播客详情失败:', err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user