Vue路由NavigationDuplicated {_name NavigationDuplicated - SunSeekerX

/ 0评 / 1
内容纲要

Vue路由NavigationDuplicated {_name NavigationDuplicated

NavigationDuplicated {_name: "NavigationDuplicated

file

查询后解决方式如下

app/main.js

import Router from 'vue-router'

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

发表评论

您的电子邮箱地址不会被公开。