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)
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注