zhaowei
2 天以前 9fbbbe80e6b48a3bd9544a24295971b8da9bc337
src/main.js
@@ -50,37 +50,26 @@
//表单验证
import { rules } from '@/utils/rules'
import * as echarts from 'echarts'
import qs from 'qs'
import VCalendar from 'v-calendar'; // 引入日历插件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 将自动注册所有组件为全局组件
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)
Vue.use(VCalendar, {
  componentPrefix: 'vc',
});
import VueDragResize from "vue-drag-resize"
Vue.component('vue-drag-resize', VueDragResize)
//注入全局属性$message
import {message,notification } from 'ant-design-vue'
Vue.prototype.$message = message
Vue.prototype.$notification = notification
message.config({
})
notification.config({
  bottom:'20px',
  right:'100px'
})
// import 'echarts-liquidfill'
Vue.prototype.$echarts = echarts
Vue.prototype.$qs = qs
Vue.prototype.rules = rules
Vue.config.productionTip = false
Vue.use(Storage, config.storageOptions)
Vue.use(Antd)
Vue.use(VueAxios, router)
Vue.use(Viser)
Vue.use(hasPermission)
Vue.use(JDictSelectTag)
Vue.use(Print)
Vue.use(ElementUI);
Vue.use(Antd)
Vue.use(preview)
Vue.use(vueBus);
Vue.use(JeecgComponents);
@@ -93,6 +82,9 @@
  new Vue({
    router,
    store,
    beforeCreate() {
      Vue.prototype.$bus = new Vue()
    },
    mounted () {
      store.commit('SET_SIDEBAR_TYPE', Vue.ls.get(SIDEBAR_TYPE, true))
      store.commit('TOGGLE_THEME', Vue.ls.get(DEFAULT_THEME, config.navTheme))