| | |
| | | import Vue from 'vue' |
| | | |
| | | import Cookies from 'js-cookie' |
| | | import * as echarts from "echarts"; |
| | | |
| | | import Element from 'element-ui' |
| | | import './assets/styles/element-variables.scss' |
| | |
| | | import directive from './directive' // directive |
| | | import plugins from './plugins' // plugins |
| | | import { download } from '@/utils/request' |
| | | //引入quill-editor编辑器 |
| | | // import VueQuillEditor from 'vue-quill-editor' |
| | | // import 'quill/dist/quill.core.css' |
| | | // import 'quill/dist/quill.snow.css' |
| | | // import 'quill/dist/quill.bubble.css' |
| | | //实现quill-editor编辑器拖拽上传图片 |
| | | // import * as Quill from 'quill' |
| | | // import { ImageDrop } from 'quill-image-drop-module' |
| | | // Quill.register('modules/imageDrop', ImageDrop) |
| | | //实现quill-editor编辑器调整图片尺寸 |
| | | // import ImageResize from 'quill-image-resize-module' |
| | | // Quill.register('modules/imageResize', ImageResize) |
| | | |
| | | import './assets/icons' // icon |
| | | import './permission' // permission control |
| | |
| | | // 组件封装集成 |
| | | import components from './components' |
| | | // 注册过滤器 |
| | | // 自定义指令 |
| | | import * as directives from './directives' |
| | | import * as filters from './filters' |
| | | for(let key in filters){ |
| | | Vue.filter(key, filters[key]) |
| | | } |
| | | |
| | | |
| | | // 全局方法挂载 |
| | | |
| | | Vue.prototype.getDicts = getDicts |
| | | Vue.prototype.getConfigKey = getConfigKey |
| | | Vue.prototype.parseTime = parseTime |
| | |
| | | Vue.prototype.selectDictLabels = selectDictLabels |
| | | Vue.prototype.download = download |
| | | Vue.prototype.handleTree = handleTree |
| | | |
| | | // 全局组件挂载 |
| | | Vue.component('DictTag', DictTag) |
| | | Vue.component('Pagination', Pagination) |
| | |
| | | Vue.component('ImageUpload', ImageUpload) |
| | | Vue.component('ImagePreview', ImagePreview) |
| | | |
| | | |
| | | // 封装自定义指令 |
| | | for(let key in directives) |
| | | Vue.directive(key, directives[key]) |
| | | Vue.use(directive) |
| | | Vue.use(plugins) |
| | | Vue.use(VueMeta) |
| | | DictData.install() |
| | | Vue.use(components) |
| | | // Vue.use(VueQuillEditor) |
| | | |
| | | |
| | | /** |
| | | * If you don't want to use mock-server |