12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import App from './App'
- // #ifndef VUE3
- import Vue from 'vue'
- Vue.config.productionTip = false;
- //组件库
- import uView from '@/uni_modules/uview-ui'
- Vue.use(uView)
- //colorui 自定义顶部nav
- import cuCustom from './colorui/components/cu-custom.vue'
- Vue.component('cu-custom', cuCustom)
- import timeHorizon from './components/timeHorizon'
- Vue.component('time-horizon', timeHorizon)
- import controlItem from "./control/modules/controlItem.vue"
- Vue.component('control-item', controlItem)
- import My_input from "./control/modules/My_input.vue"
- Vue.component('My_input', My_input)
- //自定义组件
- import My_listbox from './components/My_listbox';
- Vue.component('My_listbox', My_listbox);
- import My_search from './components/My_search';
- Vue.component('My_search', My_search);
- //挂载接口
- let env = 'dev';
- const http = {};
- // #ifdef H5
- http.baseUrl = env == 'dev' ? "/apis1" : "/apis";
- http.socket = env == 'dev' ? "/socket1" : "/socket";
- // #endif
- // #ifndef H5
- http.baseUrl = env == 'dev' ? "http://60.204.153.188" : "https://oms.idcgroup.com.cn:8079";
- http.socket = env == 'dev' ? "ws://60.204.153.188" : "wss://oms.idcgroup.com.cn:8079";
- // #endif
- console.log("接口地址", http)
- import {
- ApiModel
- } from './utils/api'
- Vue.prototype.$Http = new ApiModel(http);
- import {
- Socket
- } from './utils/Socket'
- Vue.prototype.$Socket = new Socket(http);
- 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
|