/*
|
* @Author: zhouhao 787329763@qq.com
|
* @Date: 2022-03-09 09:43:24
|
* @LastEditors: zhouhao 787329763@qq.com
|
* @LastEditTime: 2023-03-27 17:40:08
|
* @FilePath: \qyp-plat\src\main.js
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
*/
|
|
import Vue from 'vue'
|
|
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|
import ElementUI from 'element-ui'
|
import 'element-ui/lib/theme-chalk/index.css'
|
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
|
|
import '@/styles/index.scss' // global css
|
|
import App from './App'
|
import store from './store'
|
import router from './router'
|
import filterBtnById from '@/utils/controlBtn';
|
import '@/utils/directive' // 拖拽弹窗,在需要用到拖拽功能的弹窗标签上加v-dialogDrag
|
import validator from '@/utils//validator';
|
import '@/icons' // icon
|
import '@/permission' // permission control
|
import '@/assets/iconfont/iconfont.css'
|
import '@/assets/iconfont/iconfont'
|
import 'default-passive-events'
|
import '@/utils/routerload' //路由加载
|
import md5 from 'js-md5';
|
|
import VueDraggableResizable from 'vue-draggable-resizable'
|
Vue.component('vue-draggable-resizable', VueDraggableResizable)
|
Vue.prototype.$md5 = md5;
|
Vue.prototype.$tool = validator
|
Vue.use(ElementUI, { locale })
|
Vue.use(filterBtnById);
|
// 如果想要中文版 element-ui,按如下方式声明
|
// Vue.use(ElementUI)
|
|
Vue.config.productionTip = false
|
|
new Vue({
|
el: '#app',
|
router,
|
store,
|
render: h => h(App)
|
})
|