mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-08-12 17:10:37 +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
|
this.loading = true
|
||||||
try {
|
try {
|
||||||
const res = await axios({
|
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)
|
console.info(res.data.data)
|
||||||
this.voicelist = res.data.data.list || []
|
this.voicelist = res.data.data.data || []
|
||||||
this.voicelist.forEach(async (i) => {
|
this.voicelist.forEach(async (i) => {
|
||||||
try {
|
try {
|
||||||
const res2 = await axios({
|
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)
|
console.info(res2)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('获取播客详情失败:', err)
|
console.error('获取播客详情失败:', err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user