12345678910111213141516171819202122232425262728293031323334353637 |
- import App from './App'
- import uView from '@/uni_modules/uview-ui'
- import store from './store' // store
- import plugins from './plugins' // plugins
- import Vue from 'vue'
- Vue.use(plugins)
- Vue.use(uView)
- uni.$u.config.unit = 'rpx'
- Vue.config.productionTip = false
- Vue.prototype.$store = store
- Vue.prototype.ScanAudio = function(){
- var music=null;
- music=uni.createInnerAudioContext();
- music.src='../../static/20221017_084918.m4a';
- music.play();
- music.onEnded(()=>{
- music=null
- })
- }
- // #ifndef VUE3
- 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
|