quanyawei
2024-03-18 9c3961f513cb548c129dd911c1eb92ec21bb703c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import Vue from 'vue'
import App from './App'
import * as http from './utils/http' // http请求接口
import * as login from './utils/login' // 登录
import * as utils from './utils/utils' // 工具文件
// import * as common from './utils/common' // 公共文件
import store from './store/index.js'
import storage from './utils/storage' // 缓存文件
import share from './utils/share.js' // 导入并挂载全局的分享方法
import '.env.js'
// 定义全局
Vue.prototype.$store = store
Vue.prototype.$storage = storage
Vue.prototype.$http = http
Vue.prototype.$login = login
Vue.prototype.$utils = utils
// Vue.prototype.$common = common
App.mpType = 'app'
const app = new Vue({
    store,
    ...App,
})
Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve
})
app.$mount()
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
Vue.mixin(share)