123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import Vue from 'vue'
- import App from './App'
- import './event-bus' // load events
- 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";
- Vue.prototype.$echarts = echarts;
- import $ from 'jquery'
- // 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
- // 初始化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()
|