vue music 歌单组件

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-29 16:41   11   0
在data里面定义
discList: []

methods: {
            _getRecommend() {
                getRecommend().then((res) => {
                    if(res.code === ERR_OK){
                        // 轮播图数据
                        this.recommends = res.data.slider
                    }
                })
            },
            _getDiscList() {
                getDiscList().then((res) => {
                    if(res.code === ERR_OK){
                        // 歌单数据
                        this.discList = res.data.list
                    }
                })
            },
        },

转载于:https://www.cnblogs.com/jassin-du/p/9444183.html

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP