Uncaught (in promise) TypeError: Cannot read property '$router' of undefined

1.使用vue進行路由跳轉時出現錯誤:Uncaught (in promise) TypeError: Cannot read property ‘$router’ of undefined。 代碼如下: 解決辦法: 錯誤原因(個人理解): 可能是this關鍵字的作用域問題引起的錯誤。。。
相關文章
相關標籤/搜索