JavaShuo
欄目
標籤
解決vue項目Vue-router 報NavigationDuplicated: "Navigating to current location ("") is not allowed"的問題
時間 2020-08-05
標籤
解決
vue
項目
router
navigationduplicated
navigating
current
location
allowed
問題
简体版
原文
原文鏈接
出現問題的緣由 其緣由在於Vue-router在3.1以後把$router.push()方法改成了Promise。因此假如沒有回調函數,錯誤信息就會交給全局的路由錯誤處理,所以就會報上述的錯誤。vue vue-router是先報了一個Uncaught (in promise)的錯誤(push沒加回調),而後報NavigationDuplicated的錯誤(路由出現的錯誤,全局錯誤處理打印了出來。j
>>阅读原文<<
相關文章
1.
Navigating to current location ("/") is not allowed
2.
vue報錯:name: "NavigationDuplicated",message: "Navigating to current location ("/pool") is not allowed
3.
vue路由跳轉報錯:NavigationDuplicated: Navigating to current location ("/F_moments") is not allowed...
4.
VUE-Router之解決 Navigating to current location (XXX) is not allowed
5.
解決message: "Navigating to current location ("/homePage") is not allowed",警告的問題
6.
NavigationDuplicated: Navigating to current location ("/admin/dataAdmin") is not allowe
7.
解決vue-router出現message: "Navigating to current location ("/admin/index") is not allowed"的問題
8.
Navigating to current location ("/threeFloor") is not allowed
9.
name: "NavigationDuplicated", message: "Navigating to current location ("/") is not allowed", stack:
10.
解決vue項目中出現NavigationDulicated,navigating to current location(xxxx) is not allowed的問題
更多相關文章...
•
Redis悲觀鎖解決高併發搶紅包的問題
-
紅包項目實戰
•
Redis樂觀鎖解決高併發搶紅包的問題
-
紅包項目實戰
•
PHP Ajax 跨域問題最佳解決方案
•
IntelliJ IDEA中SpringBoot properties文件不能自動提示問題解決
相關標籤/搜索
問題解決
解決問題
問題&解決
allowed
current
navigationduplicated
navigating
Python問題解決
未解決問題
問題-已解決
紅包項目實戰
NoSQL教程
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
「插件」Runner更新Pro版,幫助設計師遠離996
2.
錯誤 707 Could not load file or assembly ‘Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKe
3.
Jenkins 2018 報告速覽,Kubernetes使用率躍升235%!
4.
TVI-Android技術篇之註解Annotation
5.
android studio啓動項目
6.
Android的ADIL
7.
Android卡頓的檢測及優化方法彙總(線下+線上)
8.
登錄註冊的業務邏輯流程梳理
9.
NDK(1)創建自己的C/C++文件
10.
小菜的系統框架界面設計-你的評估是我的決策
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
Navigating to current location ("/") is not allowed
2.
vue報錯:name: "NavigationDuplicated",message: "Navigating to current location ("/pool") is not allowed
3.
vue路由跳轉報錯:NavigationDuplicated: Navigating to current location ("/F_moments") is not allowed...
4.
VUE-Router之解決 Navigating to current location (XXX) is not allowed
5.
解決message: "Navigating to current location ("/homePage") is not allowed",警告的問題
6.
NavigationDuplicated: Navigating to current location ("/admin/dataAdmin") is not allowe
7.
解決vue-router出現message: "Navigating to current location ("/admin/index") is not allowed"的問題
8.
Navigating to current location ("/threeFloor") is not allowed
9.
name: "NavigationDuplicated", message: "Navigating to current location ("/") is not allowed", stack:
10.
解決vue項目中出現NavigationDulicated,navigating to current location(xxxx) is not allowed的問題
>>更多相關文章<<