123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import App from './App'
- import * as http from './utils/http' // http请求接口
- import * as utils from './utils/utils' // 工具文件
- import storage from 'utils/storage' // 缓存文件
- import config from '@/config' // 配置
- // import lodash
- Vue.prototype.$storage = storage
- Vue.prototype.$http = http
- Vue.prototype.$config = config
- Vue.prototype.$utils = utils
- import MD5 from 'js-md5'
- Vue.prototype.$md5 = MD5
- //audio
- // Vue.prototype.$scanAudio = function(){
- // let muisc = null;
- // muisc = uni.createInnerAudioContext();
- // muisc.src = "../../static/voice.mp3";
- // muisc.play();
- // muisc.onEnd(() => {
- // muisc = null
- // })
- // }
- Vue.prototype.$scanAudio = uni.createInnerAudioContext();
- // #ifndef VUE3
- import Vue from 'vue'
- // ********** devapi *********
- 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
|