微信小程序设置了背景音乐的的src 可是一直显示为空?
let back = wx.getBackgroundAudioManager()
let that = this
wx.request({
url: app.globalData.baseUrl + '/front/home/getConfig',
success(res) {
that.setData({
music:true
})
back.src = res.data.data.music
back.title = 'Tassel' // 标题为必选项
back.play()
}
})