vue 獲取當前頁面的路由參數 this.$route
在當前頁面 this.$route 輸出當前頁面路由信息
{
name: "home", meta: {…}, path: "/",
hash: "", query: {…},fullPath:'/',matched:[{}] ,params:{}
}
獲取當前頁面的路由信息
this.$route
在當前頁面 this.$route 輸出當前頁面路由信息
{
name: "home", meta: {…}, path: "/",
hash: "", query: {…},fullPath:'/',matched:[{}] ,params:{}
}
獲取當前頁面的路由信息
this.$route