Commit ecba0c85 authored by caicaicai's avatar caicaicai

处理vue中路由冗余导航报错

parent 75abbb3b
......@@ -36,11 +36,13 @@ import reservesHomepage from '../views/reservesHomepage.vue'
//门禁系统
import AccessHomepage from '../views/AccessHomepage.vue'
Vue.use(VueRouter)
//解决vue中路由冗余导航报错
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
const routes = [
//登陆页面
......
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