1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import Vue from 'vue'
- import ElementUI from 'element-ui'
- import 'normalize.css/normalize.css' // A modern alternative to CSS resets
- import 'default-passive-events'
- import 'element-ui/lib/theme-chalk/index.css'
- import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
- import '@/styles/index.scss' // global css
- import App from './App'
- import store from './store'
- import router from './router'
- import './utils/vueFilter'
- // Vue.use(vueFilter)
- import '@/icons' // icon
- import '@/permission' // permission control
- /**
- * If you don't want to use mock-server
- * you want to use MockJs for mock api
- * you can execute: mockXHR()
- *
- * Currently MockJs will be used in the production environment,
- * please remove it before going online! ! !
- */
- // import { mockXHR } from '../mock'
- // if (process.env.NODE_ENV === 'production') {
- // mockXHR()
- // }
- // 高德地址
- import VueAMap from 'vue-amap'
- Vue.use(VueAMap)
- VueAMap.initAMapApiLoader({
- key: 'b1e6ac2eb28902ce91a490edf194e000',
- plugin: ['AMap.Geolocation', 'AMap.PlaceSearch', 'AMap.Geocoder'],
- v: '1.4.4'
- })
- // set ElementUI lang to EN
- Vue.use(ElementUI, { locale })
- Vue.config.productionTip = false
- new Vue({
- el: '#app',
- router,
- store,
- render: h => h(App)
- })
|