import Vue from 'vue'
|
import App from './App.vue'
|
import './assets/tailwind.css'
|
import router from './router'
|
import store from './store'
|
import ElementUI from 'element-ui';
|
import cookies from 'vue-cookies'
|
import apiConfig from './utils/baseurl'
|
|
Vue.use(ElementUI)
|
Vue.prototype.$cookies = cookies;
|
Vue.prototype.$baseURL = apiConfig.baseURL
|
Vue.prototype.$mapKey = apiConfig.mapKey
|
Vue.prototype.$secretKey = apiConfig.secretKey
|
Vue.config.productionTip = false
|
/* 全局TableHeight */
|
Vue.prototype.$baseTableHeight = (formType) => {
|
let height = window.innerHeight
|
let paddingHeight = 200
|
const formHeight = 50
|
|
if ('number' == typeof formType) {
|
height = height - paddingHeight - formHeight * formType
|
} else {
|
height = height - paddingHeight
|
}
|
return height
|
}
|
|
new Vue({
|
router,
|
store,
|
render: h => h(App)
|
}).$mount('#app')
|