forked from xxhjsb/hbt-prevention-ui
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import Vue from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import store from './store'
|
|
import ElementUI from 'element-ui';
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
import SvgComponent from "hbt-common/components/common/svg.component.vue"
|
|
import EchartsComponent from "hbt-common/components/common/echarts.component.vue"
|
|
import "@/assets/common/icons";
|
|
// import ModelComponent from "@/components/model.component.vue"
|
|
import Mock from "mockjs"
|
|
// import { MockData } from './mock';
|
|
|
|
Vue.config.productionTip = false;
|
|
// Vue.config.warnHandler = ()=>{
|
|
|
|
// }
|
|
document.title = process.env.VUE_APP_TITLE || '汉邦唐全真数字服务平台';
|
|
|
|
// if(process.env.NODE_ENV==="development"){
|
|
// Mock.mock(/getStudent/, "get", MockData.getStudentList());
|
|
// Mock.mock(/getClass/, "get", MockData.getClassList());
|
|
|
|
// }
|
|
|
|
// 批量引入本地svg
|
|
const svgs = require.context("./assets/icons/svg",false,/\.svg$/);
|
|
const requireAll = (requireContext:any) => {
|
|
requireContext.keys().map(requireContext);
|
|
}
|
|
requireAll(svgs)
|
|
|
|
// 全局注册组件
|
|
// Vue.component("hbt-model",ModelComponent)
|
|
Vue.component("hbt-svg",SvgComponent)
|
|
Vue.component("hbt-echarts",EchartsComponent)
|
|
|
|
Vue.use(ElementUI);
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: h => h(App)
|
|
}).$mount('#app')
|