Uncaught (in promise) NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicat
2020-01-14 04:59
417 查看
问题描述:
vue重复点击菜单的时候报错
Uncaught (in promise) NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicat
处理方式
在main.js加入以下代码,再次点击就不报错了
const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) }
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Uncaught (in promise) TypeError: __webpack_require__.i(...) is not a function
- Uncaught (in promise) SyntaxError: Unexpected token o in JSON at position 1
- 解决Chrome浏览器无法自动播放音频视频的问题,Uncaught (in promise) DOMException
- ionic3+angular4中给DOM添加监听事件后报错:Uncaught (in promise): TypeError: Cannot read property 'addEventListen
- Uncaught (in promise) TypeError: Cannot read property '$router' of undefined
- 关于 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause() 错误
- (video、audio)关于 Uncaught (in promise) DOMException: The play() request was interrupted by a call to
- VUE 报这个错,在浏览器的 console 中报 uncaught (in promise)
- WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction
- Uncaught (in promise)
- Uncaught (in promise) TypeError:的错误
- Uncaught (in promise) TypeError: Super expression must either be null or a function
- goodslist.js:10 Uncaught (in promise) ReferenceError: Page is not defined
- Uncaught (in promise)一般是pormise写法
- Uncaught (in promise) TypeError: Cannot read property 'post' of undefined
- axios请求415错误Uncaught (in promise) Error: Request failed with status code 415
- ERROR Error: Uncaught (in promise): Error: StaticInjectorError
- 前端请求外域接口的时候遇到的问题Uncaught SyntaxError: Unexpected token : / Uncaught (in promise)
- Find Navigation of Page from Component Name in PeopleSoft Portal
- 【Angular2】Uncaught (in promise): TypeError: Cannot read property 'id'