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.

40 lines
843 B

4 months ago
// #ifndef VUE3
import Vue from 'vue'
4 months ago
import App from './App'
import store from './store'
import '@/static/js/request.js'
import '@/static/js/CommonFunction.js'
import '@/utils/globalAudioManager.js'
4 months ago
import {myMixins} from '@/mixins/myMixins.js'
2 months ago
import main from "@/common/index.js"
1 month ago
import BackButton from "@/components/BackButton.vue";
2 months ago
Vue.prototype.$main = main
4 months ago
Vue.mixin(myMixins)
4 months ago
Vue.config.productionTip = false
1 month ago
Vue.component('BackButton', BackButton)
4 months ago
// 去除生产环境console
if (uni.getSystemInfoSync().platform !== "devtools") {
2 months ago
// console.log = () => {}
4 months ago
}
4 months ago
App.mpType = 'app'
4 months ago
4 months ago
const app = new Vue({
4 months ago
store: store,
...App
4 months ago
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
4 months ago
import App from './App.vue'
4 months ago
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif