26 lines
763 B
JavaScript
26 lines
763 B
JavaScript
import Vue from 'vue'
|
|
import App from './App'
|
|
import service from "service/services.js"
|
|
Vue.config.productionTip = false
|
|
//挂在到vue中,其他地方只用this即可调用
|
|
// 测试环境
|
|
Vue.prototype.get =service.get;
|
|
Vue.prototype.post=service.post;
|
|
Vue.prototype.getToken=service.getToken;
|
|
// Vue.prototype.serverUrl = "http://60.2.15.135:18088"
|
|
Vue.prototype.serverUrl = "http://192.168.0.103:8899/"
|
|
import uView from '@/uni_modules/uview-ui'
|
|
Vue.use(uView)
|
|
// 如此配置即可
|
|
uni.$u.config.unit = 'rpx'
|
|
// Vue.prototype.serverUrl = "http://10.99.202.160:8090/App"
|
|
//其他页面可将常量调用
|
|
//Vue.prototype.serverUrl = "https://www.imovietrailer.com/superhero" 生产环境
|
|
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.$mount()
|