// The Vue build version to load with the `import` command// (runtime-only or standalone) has been set in webpack.base.conf with an alias.import Vue from'vue'import VueContentPlaceholders from'vue-content-placeholders'import App from'./App'import {router} from'./router'import vueplugin from'./utils/vueplugin'import'iview/dist/styles/iview.css'import iView from'iview'import Tabs from'./components/iviewbugfix/Tabs'import Progress from'./components/iviewbugfix/Progress'import Transfer from'./components/iviewbugfix/Transfer'import userselect from'./components/userselect'import store from'./store'// 在需要浏览器兼容性时再启用// import 'babel-polyfill'// import 'url-search-params-polyfill'// import 'promise-polyfill'// 对iview的组件进行了重写Vue.config.productionTip =false;Vue.use(vueplugin);Vue.use(iView);Vue.use(VueContentPlaceholders)// 全局组件注册// https://github.com/iview/iview/issues/4120 通过全局覆盖注册的方式临时解决此问题,后期可以通过版本升级解决此问题Vue.component('Tabs', Tabs)Vue.component('Progress', Progress)// Vue.component('Transfer', Transfer)Vue.component('UserSelect', userselect)/* eslint-disable no-new */var vm =newVue({ el:'#app', router, store, components: { App, }, template:'<App/>'});