本文共 277 字,大约阅读时间需要 1 分钟。
import Vue from 'vue'import Router from 'vue-router'Vue.use(Router) // 解决重复点击导航路由报错const originalPush = Router.prototype.push;Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err);}
转载地址:http://ewlzi.baihongyu.com/