天波用户运营管理后台系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3KB

  1. /*
  2. * @Date: 2021-11-30 15:35:16
  3. * @LastEditors: JinxuChen
  4. * @LastEditTime: 2021-12-08 16:16:12
  5. * @FilePath: \GpsCardAdmin\src\main.js
  6. * @description:
  7. */
  8. import Vue from 'vue'
  9. import 'normalize.css/normalize.css' // A modern alternative to CSS resets
  10. import ElementUI from 'element-ui'
  11. import 'element-ui/lib/theme-chalk/index.css'
  12. import locale from 'element-ui/lib/locale/lang/en' // lang i18n
  13. import '@/styles/index.scss' // global css
  14. import App from './App'
  15. import store from './store'
  16. import router from './router'
  17. import localStore from './store/localStore'
  18. import '@/icons' // icon
  19. import '@/permission' // permission control
  20. import transfrom from '@/utils/transfrom';
  21. Vue.use(transfrom);
  22. /**
  23. * If you don't want to use mock-server
  24. * you want to use MockJs for mock api
  25. * you can execute: mockXHR()
  26. *
  27. * Currently MockJs will be used in the production environment,
  28. * please remove it before going online ! ! !
  29. */
  30. if (process.env.NODE_ENV === 'production') {
  31. const { mockXHR } = require('../mock')
  32. mockXHR()
  33. }
  34. // set ElementUI lang to EN
  35. /* Vue.use(ElementUI, { locale }) */
  36. // 如果想要中文版 element-ui,按如下方式声明
  37. Vue.use(ElementUI)
  38. Vue.config.productionTip = false
  39. Vue.prototype.$localStore = localStore;
  40. new Vue({
  41. el: '#app',
  42. router,
  43. store,
  44. localStore,
  45. render: h => h(App)
  46. })