JavaShuo
栏目
标签
解决vue-router出现message: "Navigating to current location ("/admin/index") is not allowed"的问题
时间 2020-08-05
标签
解决
vue
router
出现
message
navigating
current
location
admin
index
allowed
问题
繁體版
原文
原文链接
其缘由在于Vue-router在3.1以后把$router.push()方法改成了Promise。因此假如没有回调函数,错误信息就会交给全局的路由错误处理,所以就会报上述的错误。 vue-router先报了一个Uncaught (in promise)的错误(由于push没加回调),而后再点击路由的时候才会触发NavigationDuplicated的错误(路由出现的错误,全局错误处理打印了出来)
>>阅读原文<<
相关文章
1.
解决message: "Navigating to current location ("/homePage") is not allowed",警告的问题
2.
Navigating to current location ("/") is not allowed
3.
报错message: Navigating to current location(/home/home) is not allowed.解决方案
4.
Navigating to current location ("/threeFloor") is not allowed
5.
vue项目路由出现message: "Navigating to current location (XXX) is not allowed"的问题
6.
解决 Navigating to current location ("/userslist") is not allowed问题。
7.
Navigating to current location ("/admin/index") is not allowed
8.
解决vue项目中出现NavigationDulicated,navigating to current location(xxxx) is not allowed的问题
9.
vue-router——message: "Navigating to current location (XXX) is not allowed"
10.
name: "NavigationDuplicated", message: "Navigating to current location ("/") is not allowed", stack:
更多相关文章...
•
Redis悲观锁解决高并发抢红包的问题
-
红包项目实战
•
Redis乐观锁解决高并发抢红包的问题
-
红包项目实战
•
PHP Ajax 跨域问题最佳解决方案
•
IntelliJ IDEA中SpringBoot properties文件不能自动提示问题解决
相关标签/搜索
问题解决
解决问题
问题&解决
allowed
current
adminindex
navigating
Python问题解决
未解决问题
问题-已解决
NoSQL教程
Spring教程
PHP教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
NLP《词汇表示方法(六)ELMO》
2.
必看!RDS 数据库入门一本通(附网盘链接)
3.
阿里云1C2G虚拟机【99/年】羊毛党集合啦!
4.
10秒钟的Cat 6A网线认证仪_DSX2-5000 CH
5.
074《从零开始学Python网络爬虫》小记
6.
实例12--会动的地图
7.
听荐 | 「谈笑风声」,一次投资圈的尝试
8.
阿里技术官手写800多页PDF总结《精通Java Web整合开发》
9.
设计模式之☞状态模式实战
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
解决message: "Navigating to current location ("/homePage") is not allowed",警告的问题
2.
Navigating to current location ("/") is not allowed
3.
报错message: Navigating to current location(/home/home) is not allowed.解决方案
4.
Navigating to current location ("/threeFloor") is not allowed
5.
vue项目路由出现message: "Navigating to current location (XXX) is not allowed"的问题
6.
解决 Navigating to current location ("/userslist") is not allowed问题。
7.
Navigating to current location ("/admin/index") is not allowed
8.
解决vue项目中出现NavigationDulicated,navigating to current location(xxxx) is not allowed的问题
9.
vue-router——message: "Navigating to current location (XXX) is not allowed"
10.
name: "NavigationDuplicated", message: "Navigating to current location ("/") is not allowed", stack:
>>更多相关文章<<