小小儁爺
2024-05-28 11ac3666423de5c03da72c388e38d869f04d9af7
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import Vue from 'vue'
import App from './App'
 
Vue.config.productionTip = false
 
App.mpType = 'app'
 
// main.js
// 引入全局 uView 框架
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
 
 
Vue.prototype.vuePrototype = ''
 
const app = new Vue({
    // store,
    ...App
})
 
Vue.prototype.$appVersion = 'v1.0.1' //APP当前版本
// Vue.prototype.$baseUrl = 'http://121.196.36.24:8021/api' //本地产品   巨力的数据库
// Vue.prototype.$baseUrl = 'http://122.227.18.22:8000/api' //本地产品   巨立防护(客户地址)
// Vue.prototype.$baseUrl = 'http://121.196.36.24:8032/api' //圣沣项目
Vue.prototype.$baseUrl = 'http://121.196.36.24:8019/api' //圣沣项目
Vue.prototype.$companyType = 'B' //企业类型(项目类型) A:巨力,B:圣沣,、B: 产品
 
// A:  http://121.196.36.24:8021/api  http://122.227.18.22:8000/api
// B:  http://121.196.36.24:8032/api  
 
import global from '@/static/js/global.js'; //引入自定义全局 js方法
Vue.prototype.global = global;
 
 
// 引入请求封装,将app参数传递到配置中
require('./config/request')(app)
 
app.$mount()
 
// // #ifndef VUE3
// import Vue from 'vue'
// import './uni.promisify.adaptor'
// 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