import App from './App'
|
import Vue from 'vue'
|
|
// 此处为引用自定义顶部
|
import cuCustom from './colorui/components/cu-custom.vue'
|
Vue.component('cu-custom',cuCustom);
|
import TnCustom from './components/TnCustom/TnCustom.vue'
|
Vue.component('tn-custom', TnCustom)
|
|
import uView from "uview-ui";
|
Vue.use(uView);
|
|
|
import api from '@/common/api.js'
|
|
// 全局挂载后使用
|
Vue.prototype.$api = api
|
|
import constant from '@/common/constant.js'
|
// 全局挂载后使用
|
Vue.prototype.$constant = constant
|
|
|
import lget from '@/common/loadshget.js'
|
// 全局挂载后使用
|
Vue.prototype.$lget = lget
|
|
import mqttTool from './lib/mqttTool.js'
|
Vue.prototype.$mqttTool = mqttTool
|
|
|
|
//全局监控定时器(在页面使用局部定时器会出现无法关闭问题)
|
Vue.prototype.$monitorTimer = null
|
|
|
|
Vue.config.productionTip = false
|
App.mpType = 'app'
|
|
const app = new Vue({
|
...App
|
})
|
app.$mount()
|
|
|
|
|