Commit b27d77b8 by songbingqi

修复进入小程序暂停其他音频的问题

parent 9ac07820
...@@ -11,6 +11,18 @@ export default { ...@@ -11,6 +11,18 @@ export default {
navigationBarHeight: 0, // 导航栏高度(标题栏高度) navigationBarHeight: 0, // 导航栏高度(标题栏高度)
}, },
onLaunch: function () { onLaunch: function () {
wx.setInnerAudioOption({
mixWithOther: true,
obeyMuteSwitch: false,
success: function (e) {
console.log(e)
console.log('play success')
},
fail: function (e) {
console.log(e)
console.log('play fail')
}
})
Store.commit('setAuthorization', uni.getStorageSync('Authorization')) Store.commit('setAuthorization', uni.getStorageSync('Authorization'))
Store.commit('setUserInfo', uni.getStorageSync('userInfo')) Store.commit('setUserInfo', uni.getStorageSync('userInfo'))
// uni.showLoading({ // uni.showLoading({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment