Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import Storage from 'vue-ls'
  4. import router from './router'
  5. import store from './store/'
  6. import { VueAxios } from "@/utils/request"
  7. import Antd from 'ant-design-vue'
  8. import Viser from 'viser-vue'
  9. import 'ant-design-vue/dist/antd.less'; // or 'ant-design-vue/dist/antd.less'
  10. import '@/permission' // permission control
  11. import '@/utils/filter' // base filter
  12. import Print from 'vue-print-nb-jeecg'
  13. /*import '@babel/polyfill'*/
  14. import preview from 'vue-photo-preview'
  15. import 'vue-photo-preview/dist/skin.css'
  16. require('@jeecg/antd-online-beta220')
  17. require('@jeecg/antd-online-beta220/dist/OnlineForm.css')
  18. import {
  19. ACCESS_TOKEN,
  20. DEFAULT_COLOR,
  21. DEFAULT_THEME,
  22. DEFAULT_LAYOUT_MODE,
  23. DEFAULT_COLOR_WEAK,
  24. SIDEBAR_TYPE,
  25. DEFAULT_FIXED_HEADER,
  26. DEFAULT_FIXED_HEADER_HIDDEN,
  27. DEFAULT_FIXED_SIDEMENU,
  28. DEFAULT_CONTENT_WIDTH_TYPE,
  29. DEFAULT_MULTI_PAGE
  30. } from "@/store/mutation-types"
  31. import config from '@/defaultSettings'
  32. import JDictSelectTag from './components/dict/index.js'
  33. import hasPermission from '@/utils/hasPermission'
  34. import vueBus from '@/utils/vueBus';
  35. import JeecgComponents from '@/components/jeecg/index'
  36. import '@/assets/less/JAreaLinkage.less'
  37. import VueAreaLinkage from 'vue-area-linkage'
  38. Vue.config.productionTip = false
  39. Vue.use(Storage, config.storageOptions)
  40. Vue.use(Antd)
  41. Vue.use(VueAxios, router)
  42. Vue.use(Viser)
  43. Vue.use(hasPermission)
  44. Vue.use(JDictSelectTag)
  45. Vue.use(Print)
  46. Vue.use(preview)
  47. Vue.use(vueBus);
  48. Vue.use(JeecgComponents);
  49. Vue.use(VueAreaLinkage);
  50. new Vue({
  51. router,
  52. store,
  53. mounted () {
  54. store.commit('SET_SIDEBAR_TYPE', Vue.ls.get(SIDEBAR_TYPE, true))
  55. store.commit('TOGGLE_THEME', Vue.ls.get(DEFAULT_THEME, config.navTheme))
  56. store.commit('TOGGLE_LAYOUT_MODE', Vue.ls.get(DEFAULT_LAYOUT_MODE, config.layout))
  57. store.commit('TOGGLE_FIXED_HEADER', Vue.ls.get(DEFAULT_FIXED_HEADER, config.fixedHeader))
  58. store.commit('TOGGLE_FIXED_SIDERBAR', Vue.ls.get(DEFAULT_FIXED_SIDEMENU, config.fixSiderbar))
  59. store.commit('TOGGLE_CONTENT_WIDTH', Vue.ls.get(DEFAULT_CONTENT_WIDTH_TYPE, config.contentWidth))
  60. store.commit('TOGGLE_FIXED_HEADER_HIDDEN', Vue.ls.get(DEFAULT_FIXED_HEADER_HIDDEN, config.autoHideHeader))
  61. store.commit('TOGGLE_WEAK', Vue.ls.get(DEFAULT_COLOR_WEAK, config.colorWeak))
  62. store.commit('TOGGLE_COLOR', Vue.ls.get(DEFAULT_COLOR, config.primaryColor))
  63. store.commit('SET_TOKEN', Vue.ls.get(ACCESS_TOKEN))
  64. store.commit('SET_MULTI_PAGE',Vue.ls.get(DEFAULT_MULTI_PAGE,config.multipage))
  65. },
  66. render: h => h(App)
  67. }).$mount('#app')