解決vue項目雙擊路由導航報錯 "Navigating to current location (XXX) is not allowed"

雙擊或者連續點擊路由導航的時候,發現報錯:vue "Navigating to current location (XXX) is not allowed" 緣由是:在路由裏面添加了相同的路由 解決方案是: 咱們能夠重寫路由的push方法 在src/router/index.js 裏面import Router from 'vue-router’下 寫入下面方法便可web /** * 重寫路由的
相關文章
相關標籤/搜索