| | |
| | | import Vue from 'vue' |
| | | import App from './App' |
| | | import httpUtils from './common/jssdk/httpUtils.js' |
| | | import utils from './common/jssdk/utils.js' |
| | | import toast from './common/jssdk/toast.js' |
| | | import filters from './common/jssdk/filters.js' |
| | | |
| | | import noRecord from './components/noRecord/index'; |
| | | |
| | | Vue.prototype.$httpUtils = httpUtils |
| | | Vue.prototype.$utils = utils |
| | | Vue.prototype.$toast = toast |
| | | Vue.prototype.$filters = filters |
| | | |
| | | // 注册全局过滤器 |
| | | Object.keys(filters).map(v => { |
| | | Vue.filter(v, filters[v]) |
| | | }) |
| | | |
| | | // 注册全局组件 |
| | | Vue.component('noRecord', noRecord); |
| | | |
| | | Vue.config.productionTip = false |
| | | |