You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
762 B
41 lines
762 B
import App from './App'
|
|
// import music from '@/utils/music.js'
|
|
// // 挂载到vue实例上
|
|
// Vue.prototype.$music = music
|
|
|
|
// Vue.prototype.ScanAudio = function(src) {
|
|
// var music = null;
|
|
// if(music){
|
|
// music.destroy()
|
|
// }
|
|
// music = uni.createInnerAudioContext(); //创建播放器对象
|
|
// music.src = src;
|
|
// console.log("src",src)
|
|
// music.play(); //执行播放
|
|
// music.onEnded(() => {
|
|
// //播放结束
|
|
// music = null;
|
|
// });
|
|
// }
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.$mount()
|
|
// #endif
|
|
|
|
// #ifdef VUE3
|
|
import { createSSRApp } from 'vue'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|