You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.6 KiB
87 lines
2.6 KiB
import Vue from 'vue'; |
|
import axios from './router/axios'; |
|
import VueAxios from 'vue-axios'; |
|
import App from './App'; |
|
import router from './router/router'; |
|
import './permission'; // 权限 |
|
import './error'; // 日志 |
|
import './cache';//页面缓存 |
|
import store from './store'; |
|
import {loadStyle} from './util/util' |
|
import * as urls from '@/config/env'; |
|
import Element from 'element-ui'; |
|
import { |
|
iconfontUrl, |
|
iconfontVersion |
|
} from '@/config/env'; |
|
import i18n from './lang'; // Internationalization |
|
import './styles/common.scss'; |
|
import basicBlock from './components/basic-block/main'; |
|
import basicContainer from './components/basic-container/main'; |
|
import thirdRegister from './components/third-register/main'; |
|
import flowDesign from './components/flow-design/main'; |
|
import avueUeditor from 'avue-plugin-ueditor'; |
|
import website from '@/config/website'; |
|
import crudCommon from '@/mixins/crud'; |
|
import '../src/util/scroll.js' |
|
// 业务组件 |
|
import codeSetting from './views/tool/codesetting.vue'; |
|
import tenantPackage from './views/system/tenantpackage'; |
|
import tenantDatasource from './views/system/tenantdatasource.vue'; |
|
import * as echarts from "echarts"; |
|
import Print from 'vue-printjs' |
|
// import Print from '@/util/print'; |
|
Vue.use(Print) // 注册 |
|
import htmlToPdf from '@/util/htmlToPdf' |
|
Vue.use(htmlToPdf) |
|
|
|
// 注册全局crud驱动 |
|
window.$crudCommon = crudCommon; |
|
// 加载Vue拓展 |
|
Vue.use(router); |
|
Vue.use(VueAxios, axios); |
|
Vue.use(Element, { |
|
i18n: (key, value) => i18n.t(key, value) |
|
}); |
|
Vue.use(window.AVUE, { |
|
size: 'small', |
|
tableSize: 'small', |
|
calcHeight: 0, |
|
i18n: (key, value) => i18n.t(key, value) |
|
}); |
|
// 注册全局容器 |
|
Vue.component('basicContainer', basicContainer); |
|
Vue.component('basicBlock', basicBlock); |
|
Vue.component('thirdRegister', thirdRegister); |
|
Vue.component('avueUeditor', avueUeditor); |
|
Vue.component('flowDesign', flowDesign); |
|
Vue.component('codeSetting', codeSetting); |
|
Vue.component('tenantPackage', tenantPackage); |
|
Vue.component('tenantDatasource', tenantDatasource); |
|
Vue.prototype.$echarts = echarts; |
|
// import Print from 'vue-print-nb' |
|
// Vue.use(Print); |
|
// Vue.prototype.$print = Print; |
|
// 加载相关url地址 |
|
Object.keys(urls).forEach(key => { |
|
Vue.prototype[key] = urls[key]; |
|
}); |
|
// 加载NutFlow |
|
Vue.use(window.WfDesignBase); |
|
// 加载website |
|
Vue.prototype.website = website; |
|
// 加载新版本命名 |
|
Vue.prototype.validData = window.AVUE.vaildData; |
|
// 动态加载阿里云字体库 |
|
iconfontVersion.forEach(ele => { |
|
loadStyle(iconfontUrl.replace('$key', ele)); |
|
}); |
|
|
|
Vue.config.productionTip = false; |
|
|
|
new Vue({ |
|
router, |
|
store, |
|
i18n, |
|
render: h => h(App) |
|
}).$mount('#app');
|
|
|