天波用户运营管理后台系统
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

51 rinda
1.2KB

  1. /*
  2. * @Date: 2021-11-30 15:35:16
  3. * @LastEditors: JinxuChen
  4. * @LastEditTime: 2021-11-30 17:51:56
  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 '@/icons' // icon
  18. import '@/permission' // permission control
  19. /**
  20. * If you don't want to use mock-server
  21. * you want to use MockJs for mock api
  22. * you can execute: mockXHR()
  23. *
  24. * Currently MockJs will be used in the production environment,
  25. * please remove it before going online ! ! !
  26. */
  27. if (process.env.NODE_ENV === 'production') {
  28. const { mockXHR } = require('../mock')
  29. mockXHR()
  30. }
  31. // set ElementUI lang to EN
  32. /* Vue.use(ElementUI, { locale }) */
  33. // 如果想要中文版 element-ui,按如下方式声明
  34. Vue.use(ElementUI)
  35. Vue.config.productionTip = false
  36. new Vue({
  37. el: '#app',
  38. router,
  39. store,
  40. render: h => h(App)
  41. })