2024-09-01 18:16:43 +08:00
|
|
|
|
import App from './App'
|
|
|
|
|
import config from '@/config'
|
|
|
|
|
const baseUrl = config.baseUrl
|
|
|
|
|
Vue.prototype.$baseUrl = baseUrl;
|
2024-09-18 18:50:21 +08:00
|
|
|
|
const baseImageUrl = config.baseImageUrl
|
|
|
|
|
Vue.prototype.$baseImageUrl = baseImageUrl;
|
2024-09-01 18:16:43 +08:00
|
|
|
|
// main.js,注意要在use方法之后执行
|
|
|
|
|
import uView from 'uview-ui'
|
|
|
|
|
Vue.use(uView)
|
|
|
|
|
// 如此配置即可
|
|
|
|
|
import share from './utils/share.js'
|
|
|
|
|
Vue.mixin(share)
|
|
|
|
|
// Vue.prototype.$baseUrl = 'http://192.168.1.3:8001/lananJdc';
|
|
|
|
|
Vue.prototype.$imgeUrl = 'http://www.nuoyunr.com/lananRsc';
|
|
|
|
|
|
|
|
|
|
// #ifndef VUE3
|
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
import './uni.promisify.adaptor'
|
|
|
|
|
import {
|
|
|
|
|
request
|
|
|
|
|
} from "@/utils/request.js"
|
|
|
|
|
Vue.prototype.$request = request
|
|
|
|
|
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
|