| | |
| | | import store from './store' |
| | | import router from './router' |
| | | |
| | | //引入echarts |
| | | import echarts from 'echarts' |
| | | Vue.prototype.$echarts = echarts |
| | | |
| | | |
| | | import '@/icons' // icon |
| | | import '@/permission' // permission control |
| | | |
| | | import url from './api/url.js' |
| | | |
| | | /** |
| | | * If you don't want to use mock-server |
| | |
| | | mockXHR() |
| | | } |
| | | |
| | | Vue.prototype.HaveJson = (val) => { |
| | | return JSON.parse(JSON.stringify(val)) |
| | | } |
| | | |
| | | // set ElementUI lang to EN |
| | | Vue.use(ElementUI, { locale }) |
| | | // 如果想要中文版 element-ui,按如下方式声明 |
| | | // Vue.use(ElementUI) |
| | | |
| | | Vue.use(url); |
| | | |
| | | Vue.config.productionTip = false |
| | | |
| | | new Vue({ |