yirongjin
2025-07-23 c2da0b81321e66e3c3706d6833ad4c92c62d0935
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import App from './App'
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import createStore from './service/store'
import config from './config/index.js'
import defineApi from './service/request'
 
const store = createStore(Vue);
const $api = new defineApi(store,config)
 
Vue.config.productionTip = false
App.mpType = 'app'
Vue.use(uView)
 
Vue.prototype.$config = config;
Vue.prototype.$api = $api;
 
const app = new Vue({
    ...App,
    store: store
})
app.$mount()