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.2' //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.$baseUrl = 'http://192.168.2.254:8000/api' //圣沣项目 客户现场实际服务器ip 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