$route和$router

$router是VueRouter的實例,想要導航到不同的URL,就使用 $router.push方法。 $route是爲當前router(活躍路由)跳轉對象裏面可以獲取name、path、query、params等。
相關文章
相關標籤/搜索