|
- import Vue from 'vue'
- import App from './App.vue'
- import { initRouter } from './router'
- import './theme/index.less'
- import Antd from 'ant-design-vue'
- import Viser from 'viser-vue'
- // import '@/mock'
- import store from './store'
- import 'animate.css/source/animate.css'
- import Plugins from '@/plugins'
- import { initI18n } from '@/utils/i18n'
- import bootstrap from '@/bootstrap'
- import Viewer from 'v-viewer'
- import VueClipboard from 'vue-clipboard2'
- import 'viewerjs/dist/viewer.css'
- import 'moment/locale/zh-cn'
- import './utils/filter'
- import '@/style/common.css'
- import * as echarts from 'echarts'
- Vue.prototype.$echarts = echarts
- import CustomDrawer from '@/components/drawer/CustomDrawer';
- import SvgIcon from '@/components/iconFont/SvgIcon';
- import OpenCloseBox from '@/components/customer/OpenCloseBox';
- import ButtonBox from '@/components/customer/ButtonBox';
- import CustomerIntroduce from '@/components/customer/CustomerIntroduce';
- import StringSubstr from '@/components/customer/StringSubstr';
- import CustomModal from '@/components/modal/CustomModal';
- Vue.component(CustomDrawer.name, CustomDrawer);
- Vue.component(SvgIcon.name, SvgIcon);
- Vue.component(OpenCloseBox.name, OpenCloseBox);
- Vue.component(ButtonBox.name, ButtonBox);
- Vue.component(CustomerIntroduce.name, CustomerIntroduce);
- Vue.component(StringSubstr.name, StringSubstr);
- Vue.component(CustomModal.name, CustomModal);
- Vue.config.devtools = true;
- const router = initRouter(store.state.setting.asyncRoutes)
- const i18n = initI18n('CN', 'US')
- import Bus from '@/utils/bus';
- import { BOM_ICON } from '@/utils/const';
- Vue.prototype.$bus = Bus;
- Vue.prototype.$bomIcon = BOM_ICON;
- Vue.use(Viewer)
- Vue.use(VueClipboard)
- Viewer.setDefaults({
- Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
- })
- Vue.use(Antd)
- Vue.use(Viser)
- Vue.use(Plugins)
-
- bootstrap({ router, store, i18n, message: Vue.prototype.$message })
-
- new Vue({
- router,
- store,
- i18n,
- render: h => h(App),
- }).$mount('#app')
|