@vueuse/router
This is an add-on of VueUse, providing utilities for vue-router.
Install
bash
npm i @vueuse/router vue-router@5Functions
useRouteHash— 对响应式的route.hash的简写。useRouteParams— 对响应式的route.params的简写。useRouteQuery— 响应式route.query的简写。当 ref 变化时会更新 URL 查询参数。
License
MIT License © 2019-PRESENT Anthony Fu