12345678910111213141516171819202122232425262728293031 |
- 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'
- Vue.use(VueJsonp)
- Vue.prototype.$store=Store;
- Vue.prototype.$util=util;
- Vue.prototype.$api=api;
- Vue.prototype.$moment=moment;
- 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
|