報錯message: Navigating to current location(/home/home) is not allowed.解決方案

報錯: 寫vue項目時報錯message: Navigating to current location (」/home/home") is not allowed,路由組件頁面將不會刷新出來,呈現一片空白。 原因: 路由路徑發生改變, 路由選中丟失。 解決方案:includes() 用ES6中includes()方法指向對應的路由路徑。
相關文章
相關標籤/搜索