123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import Vue from 'vue'
- import App from './App.vue'
- // 引入element
- import ElementUI from 'element-ui';
- import 'element-ui/lib/theme-chalk/index.css';
- // 全局配置elementui的dialog不能通过点击遮罩层关闭
- ElementUI.Dialog.props.closeOnClickModal.default = false
- Vue.use(ElementUI);
- Vue.component(ElementUI.Message)
- import Viewer from 'v-viewer'
- import 'viewerjs/dist/viewer.css'
- Vue.use(Viewer);
- Vue.prototype.$message.successMsg = function (msg, duration=3) {
- return ElementUI.Message.success({
- message: msg,
- duration: duration*1000
- })
- }
- Vue.prototype.$message.errorMsg = function (msg, duration=3) {
- return ElementUI.Message.errorMsg({
- message: msg,
- duration:duration*1000
- })
- }
- // 引入封装的router
- import router from '@/router/index'
- // time line css
- import '../node_modules/timeline-vuejs/dist/timeline-vuejs.css'
- import '@/permission'
- import { store } from '@/store/index'
- Vue.config.productionTip = false
- // // 图片预览
- // import 'viewerjs/dist/viewer.css'
- // import Viewer from 'v-viewer'
- // Vue.use(Viewer)
- // 路由守卫
- import Bus from '@/utils/bus.js'
- Vue.use(Bus)
- import APlayer from '@moefe/vue-aplayer';
- Vue.use(APlayer, {
- defaultCover: 'https://github.com/u3u.png',
- productionTip: true,
- });
- import VueUeditorWrap from 'vue-ueditor-wrap'
- Vue.component('vue-ueditor-wrap', VueUeditorWrap)
- import md5 from 'js-md5';
- Vue.prototype.$md5 = md5;
- import { auth } from '@/directive/auth'
- // 按钮权限指令
- auth(Vue)
- import uploader from 'vue-simple-uploader'
- Vue.use(uploader)
- export default new Vue({
- render: h => h(App),
- router,
- store
- }).$mount('#app')
- //引入echarts
- import echarts from 'echarts'
- Vue.prototype.$echarts = echarts;
|