123456789101112131415161718192021222324252627282930313233 |
- import App from './App'
- import Vue from 'vue';
- import Store from './store';
- import util from './util';
- import api from '@/util/api.js'
- import moment from 'moment';
- import {VueJsonp} from 'vue-jsonp';
- import OSS from 'ali-oss'
- Vue.use(VueJsonp)
- Vue.prototype.$store=Store;
- Vue.prototype.$util=util;
- Vue.prototype.$api=api;
- Vue.prototype.$moment=moment;
- Vue.prototype.$oss=OSS;
- Vue.prototype.$EventBus = new Vue();
- // #ifndef VUE3
- 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
|