| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | import Vue from 'vue'import Cookies from 'js-cookie'import Element from 'element-ui'import './assets/styles/element-variables.scss'import '@/assets/styles/index.scss' // global cssimport '@/assets/styles/ruoyi.scss' // ruoyi cssimport App from './App'import store from './store'import router from './router'import directive from './directive' // directiveimport plugins from './plugins' // pluginsimport './assets/icons' // iconimport './permission' // permission controlimport { getDicts } from "@/api/system/dict/data";import { getConfigKey } from "@/api/infra/config";import { parseTime, resetForm, addDateRange, addBeginAndEndTime, handleTree} from "@/utils/ruoyi";import Pagination from "@/components/Pagination";// 自定义表格工具扩展import RightToolbar from "@/components/RightToolbar"// 代码高亮插件// import hljs from 'highlight.js'// import 'highlight.js/styles/github-gist.css'import {DICT_TYPE, getDictDataLabel, getDictDatas, getDictDatas2} from "@/utils/dict";// 全局方法挂载Vue.prototype.getDicts = getDictsVue.prototype.getConfigKey = getConfigKeyVue.prototype.parseTime = parseTimeVue.prototype.resetForm = resetFormVue.prototype.addDateRange = addDateRangeVue.prototype.addBeginAndEndTime = addBeginAndEndTimeVue.prototype.getDictDatas = getDictDatasVue.prototype.getDictDatas2 = getDictDatas2Vue.prototype.getDictDataLabel = getDictDataLabelVue.prototype.DICT_TYPE = DICT_TYPEVue.prototype.handleTree = handleTree// 全局组件挂载Vue.component('DictTag', DictTag)Vue.component('Pagination', Pagination)Vue.component('RightToolbar', RightToolbar)// 字典标签组件import DictTag from '@/components/DictTag'// 头部标签插件import VueMeta from 'vue-meta'Vue.use(directive)Vue.use(plugins)Vue.use(VueMeta)// Vue.use(hljs.vuePlugin);// bpmnProcessDesigner 需要引入import MyPD from "@/components/bpmnProcessDesigner/package/index.js";Vue.use(MyPD);import "@/components/bpmnProcessDesigner/package/theme/index.scss";import "bpmn-js/dist/assets/diagram-js.css";import "bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import "bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";// Form Generator 组件需要使用到 tinymceimport Tinymce from '@/components/tinymce/index.vue'Vue.component('tinymce', Tinymce)import '@/icons'import axios from 'axios'Vue.prototype.$axios = axiosimport '@/styles/index.scss'/** * 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! ! ! */Vue.use(Element, {  size: Cookies.get('size') || 'medium' // set element-ui default size})Vue.config.productionTip = falsenew Vue({  el: '#app',  router,  store,  render: h => h(App)})
 |