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.
安裝cuda+cuDNN
2.
GitHub的使用說明
3.
phpDocumentor使用教程【安裝PHPDocumentor】
4.
yarn run build報錯Component is not found in path 「npm/taro-ui/dist/weapp/components/rate/index「
5.
精講Haproxy搭建Web集羣
6.
安全測試基礎之MySQL
7.
C/C++編程筆記:C語言中的複雜聲明分析,用實例帶你完全讀懂
8.
Python3教程(1)----搭建Python環境
9.
李宏毅機器學習課程筆記2:Classification、Logistic Regression、Brief Introduction of Deep Learning
10.
阿里雲ECS配置速記
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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:
>>更多相關文章<<