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 "@/css/style.css"; import "./router/index2"; import axios from "axios"; // import Router from 'vue-router' // const routerPush = Router.prototype.push // Router.prototype.push = function push(location) { // return routerPush.call(this, location).catch(error=> error) // } Vue.use(ElementUI); Vue.config.productionTip = false; new Vue({ router, store, render: (h) => h(App), }).$mount("#app");