12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- import Vue from 'vue'
- import App from './App'
- import './event-bus' // load events
- // 将自动注册所有组件为全局组件
- import dataV from '@jiaminghi/data-view'
- Vue.use(dataV)
- import ElementUI from 'element-ui';
- import 'element-ui/lib/theme-chalk/index.css';
- Vue.use(ElementUI);
- import './global/index'
- import notification from './notification'
- import '@/styles/common.scss' // global css
- import i18n from '@/lang' // Internationalization
- import './permission' // permission control
- import './registerServiceWorker';
- import Print from 'vue-print-nb'
- Vue.use(Print);
- import crudCommon from '@/mixins/crud'
- window.$crudCommon = crudCommon;
- import vendors from '@/vendors'
- const { router, store } = vendors
- Vue.config.productionTip = false
- // import AMap from 'vue-amap';
- // Vue.use(AMap);
- import imgPreview from '@/components/imgPreview'
- Vue.use(imgPreview)
- import echarts from 'echarts';
- import geoJson from '@/styles/china.json'
- echarts.registerMap('china', geoJson);
- Vue.prototype.$echarts = echarts;
- // import Warehouse from './common.js'
- import Warehouse from './common.js'
- Vue.prototype.WAREHOUSE = Warehouse.houseName
- Vue.prototype.common = Warehouse
- import axios from 'axios';
- Vue.prototype.$axios = axios;
- import global from './global.js'
- Vue.prototype.global = global
- import ItemWrap from './components/item-wrap/item-wrap.vue'
- Vue.component('ItemWrap', ItemWrap)
- import Echart from './components/echart/index.vue'
- Vue.component('Echart', Echart)
- import '@/utils/jsmpeg.min'
- // 初始化vue-amap
- // AMap.initAMapApiLoader({
- // // 高德key
- // key: 'd5486742b76ab0969e4c3ce26f46dfc6',
- // // 插件集合 (插件按需引入)
- // plugin: ['AMap.Geolocation', 'Geolocation', 'AMap.DistrictSearch', "AMap.PlaceSearch",'AMap.Autocomplete', 'AMap.Geocoder', 'AMap.DistrictSearch'],
- // v: '1.4.4'
- // });
- // ------------ 通过域名判断起始的登陆页面 开始 --------------------
- //使用login的Url
- // const urls = [
- // 'www.winsea.com',
- // 'product-test.winsea.com',
- // 'test.winsea.com',
- // 'saas.winsea.com',
- // 'saas-test.winsea.com'
- // ]
- // urls.includes(window.location.host)
- // ? localStorage.setItem('ws_login_type', 2)
- // : localStorage.removeItem('ws_login_type')
- // ------------ 通过域名判断起始的登陆页面 结束 --------------------
- var vue = new Vue({
- el: '#app',
- router,
- store,
- i18n,
- render: h => h(App)
- })
- // 初始化通知监听
- notification.init(vue, localStorage.getItem('ws-pf_userId'))
- notification.start()
|