main.js 400 B

123456789101112131415161718192021
  1. import Vue from 'vue'
  2. import App from './App'
  3. Vue.config.productionTip = false
  4. // 打开App
  5. Vue.prototype.openApp = function () {
  6. const res = uni.getSystemInfoSync()
  7. if (res.platform === 'ios') {
  8. window.location.href = 'MKROhPlay://'
  9. } else {
  10. window.location.href = 'airsmart://com.muzen.radioplayer:8888/main'
  11. }
  12. }
  13. App.mpType = 'app'
  14. const app = new Vue({
  15. ...App
  16. })
  17. app.$mount()