Commit 65793983 authored by 黄奎's avatar 黄奎

页面修改

parent b4b39325
import Vue from 'vue' import Vue from 'vue'
import Router from 'vue-router' import Router from 'vue-router'
Vue.use(Router)
/** /**
* 重写路由的push方法 * 重写路由的push方法
*/ */
...@@ -9,8 +10,6 @@ Router.prototype.push = function push(location) { ...@@ -9,8 +10,6 @@ Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error=> error) return routerPush.call(this, location).catch(error=> error)
} }
Vue.use(Router)
export default new Router({ export default new Router({
routes: [{ routes: [{
path: '/', path: '/',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment