12345678910111213141516171819202122232425262728293031323334 |
- // #ifndef VUE3
- import Vue from 'vue'
- import App from './App'
- import store from './store'
- import uView from '@/uni_modules/uview-ui'
- import request from '@/util/request.js'
- import utils from '@/util/util.js'
- Vue.prototype.$request = request
- Vue.prototype.$utils = utils
- Vue.prototype.$store = store
- Vue.use(uView)
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- // #endif
- // #ifdef VUE3
- import {
- createSSRApp
- } from 'vue'
- import App from './App.vue'
- export function createApp() {
- const app = createSSRApp(App)
- return {
- store,
- ...app
- }
- }
- // #endif
|