新增音乐sdk初始化方法

This commit is contained in:
lyswhut
2019-10-30 22:29:14 +08:00
parent c881f8e886
commit 0df3ca3c5f
5 changed files with 41 additions and 14 deletions
+4
View File
@@ -22,6 +22,7 @@ import dnscache from 'dnscache'
import { mapMutations, mapGetters, mapActions } from 'vuex'
import { rendererOn } from '../common/icp'
import { isLinux } from '../common/utils'
import music from './utils/music'
window.ELECTRON_DISABLE_SECURITY_WARNINGS = process.env.ELECTRON_DISABLE_SECURITY_WARNINGS
dnscache({
enable: true,
@@ -145,6 +146,9 @@ export default {
this.globalObj.apiSource = this.setting.apiSource
this.globalObj.proxy = Object.assign({}, this.setting.network.proxy)
window.globalObj = this.globalObj
// 初始化音乐sdk
music.init()
},
enableIgnoreMouseEvents() {
if (isLinux) return