问题:
我使用如下代码
let lyric = getLyric(this.$store.state.songId);
console.log(lyric)
获取到的结果:
如果直接console.log(lyric.data),会输出undefined
解决:
let lyric = getLyric(this.$store.state.songId);
let a = lyric.then((res)=>{
console.log(res.data)
});
我使用如下代码
let lyric = getLyric(this.$store.state.songId);
console.log(lyric)
获取到的结果:
如果直接console.log(lyric.data),会输出undefined
let lyric = getLyric(this.$store.state.songId);
let a = lyric.then((res)=>{
console.log(res.data)
});